I'm having the following link_to
link_to 'Close Discussion', blog_discussion_path(@blog, @note, note: {
state_transaction: :close }, only_status: true), method: :put
The parameters state_transaction and only_status are encoded within the
query. This is is what I want to hide/remove.
Colin Law wrote in post #1154239:
> If you are literally 'sending data to the server' then generally this
> should be sent using a POST, so the data will not be in the url.
You mean changing the method to method: post and add another route?
Martin
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/6334109f98f18ba7411ab973de97b76a%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment