Skip to content

Instantly share code, notes, and snippets.

@sushant12
Created June 2, 2017 09:09
Show Gist options
  • Save sushant12/0977f7260b5b5ff403c9ca23b3a8a5fd to your computer and use it in GitHub Desktop.
Save sushant12/0977f7260b5b5ff403c9ca23b3a8a5fd to your computer and use it in GitHub Desktop.
listing the tasks
<% DB.execute( “select rowid, * from tasks” ) do |row| %>
<li><%= row[1] %> <% if(row[2] == 1) %>(finished) <% end %><a href=”/edit?id=<%= row[0]%>”>edit </a> <a href=”/delete?id=<%= row[0]%>”> del</a></li>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment