Skip to content

Instantly share code, notes, and snippets.

@andyhawthorne
Created November 25, 2012 22:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andyhawthorne/4145676 to your computer and use it in GitHub Desktop.
Save andyhawthorne/4145676 to your computer and use it in GitHub Desktop.
get '/notes/:category' do
@notes = Note.all.paginate(:category_id => params[:category],:page => params[:page], :per_page => 10)
@cat = Category.get(params[:category])
erb :notes
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment