New action view example
<h1>Article controller, new action</h1>
 
<%= form_for(@article, :action => resource(:articles) ) do %>
 
  <p>
    <%= text_field :title, :label => "Title " %>
  </p>
 
  <p>
    <%= text_field :content, :label => "Content "  %>
  </p>
 
  <p>
    <%= submit "Create" %>
  </p>
<% end =%>
 
<%= link_to 'Back', resource(:articles) %>
 
howto/simple_new_view.txt · Last modified: 2009/01/11 10:24 by 76.176.140.55