Skip to content

Instantly share code, notes, and snippets.

@thomasbiddle
Created January 16, 2013 00:00
Show Gist options
  • Save thomasbiddle/4543359 to your computer and use it in GitHub Desktop.
Save thomasbiddle/4543359 to your computer and use it in GitHub Desktop.
Rails Forms
<%= form_tag('/projects/build/', :method => "post") do %>
<%= label_tag(:revision, "Revision:") %>
<%= text_field_tag(:revision) %>
<%= submit_tag "Submit", :confirm => "You sure you want to do that?", :class => "btn btn-primary" %>
<% end %>
# In the controller:
params[:revision]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment