On 5 August 2014 09:13, Martin Trummer <li...@ruby-forum.com> wrote:
> 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.

Use a form rather than a link.  You can use hidden fields to set the
parameters, with only the submit link visible if that is what you
want.

Colin

-- 
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+unsubscr...@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/CAL%3D0gLth1bWPwN28i-yxdJ8TMUUYviT46z%3D69qmFYkLgjgu7Hw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to