Hello everyone, I have a messages_controller, inside this controller, among all the default methods I have a tweet method that sends the message to twitter, and aside the 'edit' and 'destroy' links I want a 'tweet
rodrigo3n wrote:
Hello everyone, I have a messages_controller, inside this controller, among all the default methods I have a tweet method that sends the message to twitter, and aside the 'edit' and 'destroy' links I want a 'tweet
You can specify this 'tweet' method as a member action of your controller in routes.rb
T.Veerasundaravel.
@veerasundaravel
first watch this to understand what you have to do
http://railscasts.com/episodes/35-custom-rest-actions
then watch this to see how it was upgraded in rails 3