Skip to content

Instantly share code, notes, and snippets.

@fresh5447
Created April 16, 2014 16:49
Show Gist options
  • Select an option

  • Save fresh5447/10905761 to your computer and use it in GitHub Desktop.

Select an option

Save fresh5447/10905761 to your computer and use it in GitHub Desktop.
Sign out error
<h1>Welcome to Freshitoff</h1>
<p>A simple application for createing To-Do lists.</p>
<div class="btn-group-vertical">
<% @todos.each do |todo| %>
<button type="button" class="btn btn-default"><%= todo.description %></button>
<% end %>
</div>
<ul class="nav nav-pills">
<li><a href="#"><%= link_to("Create a new todo", new_todo_path) if current_user %></a></li>
<li><a href="#"><%= link_to("Sign out", destroy_user_session_path, method: :delete) if current_user %></a></li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment