Create a gist now

Instantly share code, notes, and snippets.

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

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