1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<h1>New command</h1> <% form_for(@command) do |f| %> <%= f.error_messages %> <p> <%= f.label :name %><br /> <%= f.text_field :name %> </p> <p> <%= f.label :technique %><br /> <%= f.text_field :technique %> </p> <p> <%= f.submit 'Create' %> </p> <% end %> <%= link_to 'Back', commands_path %>