How to get URL parameters in Rails? How to get URL parameters in Rails? ruby-on-rails ruby-on-rails

How to get URL parameters in Rails?


it's the same actually as GET parameters. To prove that, I have a search form that posts one parameter to the same action :

def invite    if request.post?         search= [params[:search]]        #...    endend

And in the view - maybe your problem comes from this

<% form_tag do %>        <%= text_field_tag :search, params[:search] %>        <%= submit_tag "Rechercher" %><% end %>