Skip to content

Instantly share code, notes, and snippets.

@mikker
Forked from lmarburger/_base.html.erb
Created June 14, 2011 14:37
Show Gist options
  • Select an option

  • Save mikker/1025021 to your computer and use it in GitHub Desktop.

Select an option

Save mikker/1025021 to your computer and use it in GitHub Desktop.

Revisions

  1. mikker revised this gist Jun 14, 2011. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions application.html.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    <!DOCTYPE html>
    <html>
    <head>
    <title>Site</title>
    </head>
    <body>
    <%= render(:layout => 'layouts/page') { yield } %>
    </body>
    </html>
  2. mikker revised this gist Jun 14, 2011. 3 changed files with 3 additions and 13 deletions.
    10 changes: 0 additions & 10 deletions _base.html.erb
    Original file line number Diff line number Diff line change
    @@ -1,10 +0,0 @@
    <!DOCTYPE html>
    <html>
    <head>
    <title>Site</title>
    </head>
    <body class="app">
    <%= render :partial => 'layouts/flashes' %>
    <%= yield %>
    </body>
    </html>
    3 changes: 3 additions & 0 deletions _page.html.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    <div id="header">...</div>
    <%= yield %>
    <div id="footer">...</div>
    3 changes: 0 additions & 3 deletions application.html.erb
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    <%= render :layout => 'layouts/base' do %>
    <%= yield %>
    <% end %>
  3. @lmarburger lmarburger revised this gist Dec 14, 2010. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion application.html.erb
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,3 @@
    <%= render :layout => '/layouts/base' do %>
    <%= render :layout => 'layouts/base' do %>
    <%= yield %>
    <% end %>
  4. @lmarburger lmarburger created this gist Dec 14, 2010.
    10 changes: 10 additions & 0 deletions _base.html.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,10 @@
    <!DOCTYPE html>
    <html>
    <head>
    <title>Site</title>
    </head>
    <body class="app">
    <%= render :partial => 'layouts/flashes' %>
    <%= yield %>
    </body>
    </html>
    3 changes: 3 additions & 0 deletions application.html.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    <%= render :layout => '/layouts/base' do %>
    <%= yield %>
    <% end %>
    19 changes: 19 additions & 0 deletions index.html.erb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <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 %>