<% form_for @person do |f| %> <%= f.text_field :first_name %> <%= f.text_field :last_name %> <%= f.submit 'Create' %> <% end %> <form action="/people/create" method="post"> <input id="person_first_name" name="person[first_name]" type="text" /> <input id="person_last_name" name="person[last_name]" type="text" /> <input name="commit" type="submit" value="Create" /> </form>
Recommend
More recommend