Passing multiple parameters within a form

<% form_tag do %> <p>   <label for="name">Name:</label>   <%= text_field_tag :name, params[:name] %> </p>

<p>   <label for="password">Password:</label>   <%= password_field_tag :password, params[:password] %> </p> <p><%= submit_tag "Login" %></p> <% end %>

This sends params[:name] and params[:password] that you can use in your controller.

Passing multiple parameters is what a form does. :slight_smile: You're over- thinking it.

Also notice that you use <% form_tag ... %> NOT <%= form_tag... %>. No equal sign. You end the form with <% end %>.