Hi,
this should be done with a POST request (within a form, with e.g.
form_for), you cannot hide params with a GET request + current_member
would be i guess in a session, so you don''t need to pass it as params
in your url.
On 11 fév, 07:50, albert
<rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>
wrote:> Hi,
>
> I am passing some extra parameters when using link_to however I
don''t
> want them to be displayed in the url.
> For example for the following:
> <%= link_to ''Add to library'', :controller =>
''member'', :action =>
> ''add_to_library'', :id => study.id ,:member =>
current_member, :where =>
> ''study menu'' %>
> the url will be
:http://localhost:3000/member/add_to_library/3?where=study+menu&member=2
>
> I am wondering how can I only show
this:http://localhost:3000/member/add_to_library/3
>
> I looked at the routing chapter in the Agile web development book but
> got a bit confused . Should I do this in the config/Routes.rb? If so,
> How?
>
> Any help is greatly appreciated.
>
> -Albert
>
> --
> Posted viahttp://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
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
-~----------~----~----~----~------~----~------~--~---