Reputation: 5283
I have an HTML form in my Rails view
<form id="download_form" action="download">
Username: <input type="text" name="username"> <br/>
<input type="submit" id="submit_download_form" value="Submit">
</form>
How do I access the value of the parameter username
in the Rails controller download
method?
Upvotes: 2
Views: 49
Reputation: 19789
you can access your paremeters by doing params[:username]
in your controller.
Upvotes: 2