Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% form_for(@recommendation) do |f| %>
- <fieldset>
- <legend>Add new recommendation!</legend>
- <%= f.error_messages %>
- <%= f.label :recommendation %>
- <%= f.text_field :recommendation %>
- <%= f.submit "Create" %>
- </fieldset>
- <% end %>
- <ol>
- <%- @recommendations.each do |rec| -%>
- <li><%=h rec.recommendation %>, [<%= link_to "X", :confirm => "Are you sure?", :method => :delete %>]</li>
- <%- end -%>
- </ol>
Add Comment
Please, Sign In to add comment