I am unable to find any information about invisible parameters. I currently have some code like this: <%= link_to ''page'', :controller => ''form'', :action => ''new'', :type => ''first_type'' %> <%= link_to ''page'', :controller => ''form'', :action => ''new'', :type => ''second_type'' %> etc. When one clicks the a link, the value :type is passed to the ''new'' action. That''s all fine and good. However the value is also displayed in the address bar like so: http://www.mysite.com/forms/new?type=first_type Is there a means to hide the value in the address but still pass on the value? Having just: http://www.mysite.com/forms/new Thanks! -Gilles -- 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
link_to just creates a standard href so... no... you could use button_to an have it be a form... Gilles wrote:> I am unable to find any information about invisible parameters. I > currently have some code like this: > > <%= link_to ''page'', :controller => ''form'', :action => ''new'', :type => > ''first_type'' %> > <%= link_to ''page'', :controller => ''form'', :action => ''new'', :type => > ''second_type'' %> > > etc. > > When one clicks the a link, the value :type is passed to the ''new'' > action. That''s all fine and good. However the value is also displayed in > the address bar like so: > > http://www.mysite.com/forms/new?type=first_type > > Is there a means to hide the value in the address but still pass on the > value? Having just: > > http://www.mysite.com/forms/new > > Thanks! > > -Gilles > >--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Ummm.. I think you should first read about the basics of HTTP request methods, especially GET vs POST. Making a parameter "invisible" as you put it would be achieved using a POST request. On 14/09/06, Gilles <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > > I am unable to find any information about invisible parameters. I > currently have some code like this: > > <%= link_to ''page'', :controller => ''form'', :action => ''new'', :type => > ''first_type'' %> > <%= link_to ''page'', :controller => ''form'', :action => ''new'', :type => > ''second_type'' %> > > etc. > > When one clicks the a link, the value :type is passed to the ''new'' > action. That''s all fine and good. However the value is also displayed in > the address bar like so: > > http://www.mysite.com/forms/new?type=first_type > > Is there a means to hide the value in the address but still pass on the > value? Having just: > > http://www.mysite.com/forms/new > > Thanks! > > -Gilles > > -- > 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 post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---