Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!-- note the use of slice_url -->
- <h1>New Page</h1>
- <%= form_for(@page, :action => slice_url(:pages) ) do %>
- <p>
- <%= text_field :title, :label => "Title" %>
- </p>
- <p>
- <%= text_area :body, :label => "Body" %>
- </p>
- <p>
- <%= submit "Create" %>
- </p>
- <% end =%>
- <%= link_to 'Back', slice_url(:pages) %>
Add Comment
Please, Sign In to add comment