Advertisement
XNoScopeItX

Index.html.erb

Mar 15th, 2017
543
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.40 KB | None | 0 0
  1.  
  2. <h1>Portfolio Items</h1>
  3.  
  4. <%= link_to "Create New Item", new_portfolio_url %>
  5.  
  6. <% @portfolio_items.each do |portfolio_item| %>
  7.   <p><%= portfolio_item.title %></p>
  8.   <p><%= portfolio_item.subtitle %></p>
  9.   <p><%= portfolio_item.body %></p>
  10.   <%= image_tag portfolio_item.thumbnail unless portfolio_item.thumbnail.nil? %>
  11.   <%= link_to "Edit", edit_portfolio_path(portfolio_item.id) %>
  12. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement