[Rails] Re: Link to remote and the equivalent in Rails 3
I think it might be "solved" by including :method => :post as below ..
<%= link_to "Add Photos", {:controller => 'entries', :action =>
'showphotos'}, {:method => :post, :remote => true} %>
Then it seems to work ...
It also works with:
<%= link_to "Add Photos", showphotos_path, :method => :post, :remote
=> true %>
Thanks for all the help.
I'm not really sure why I need to include the :method => :post
thing .... but I'm sure it'll all become clear ...
--
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 rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home