Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<!DOCTYPE html>
<body class="app">
<%= render :partial => 'layouts/flashes' %>
<%= yield %>
<%= render :layout => 'layouts/base' do %>
<%= yield %>
<% end %>
<h1>Listing projects</h1>
<table id="projects">
<% @projects.each do |project| %>
<td><%= link_to, project %></td>
<td><%= link_to 'Destroy', project, :confirm => 'Are you sure?', :method => :delete %></td>
<% end %>
<br />
<%= link_to 'New Project', new_project_path %>

This comment has been minimized.

Copy link

grillermo commented Oct 25, 2013

Could you add to this example how it would look the markup for an action in a specific controller?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.