On 6 January 2011 15:21, Chris Habgood <[email protected]> wrote: > It was going to the create action even though it said > WorkCommentsController#index
Please don't top post, it makes it difficult to follow the thread. Insert your reply at the appropriate points in the previous message. Thanks. If it is going to the wrong action you have a problem with your routes (routes.rb). See the Rails Guide on Routes if you are not familiar with how these work. Colin > > On Thu, Jan 6, 2011 at 02:52, Colin Law <[email protected]> wrote: >> >> On 6 January 2011 02:16, Me <[email protected]> wrote: >> > The url in the link to remote below does not have the action in the url. >> > Ideas? >> > link_to_remote(comment.text, :url => >> > {:controller=>'workshop_comments',:action=>'index',:id=>comment})) >> >> The index action is not required in the url as index should be the >> default route (ie http:/mydomain.com/my_controller/ should route to >> my_controller#index) >> >> Colin >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-talk?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

