Skip to content

Instantly share code, notes, and snippets.

@evernotegists
Created April 4, 2013 20:14
Show Gist options
  • Save evernotegists/5313969 to your computer and use it in GitHub Desktop.
Save evernotegists/5313969 to your computer and use it in GitHub Desktop.
get '/list' do
begin
# Get notebooks
session[:notebooks] = notebooks.map(&:name)
# Get username
session[:username] = en_user.username
# Get total note count
session[:total_notes] = total_note_count
erb :index
rescue => e
@last_error = "Error listing notebooks: #{e.message}"
erb :error
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment