Skip to content

Instantly share code, notes, and snippets.

@Wardrop
Created February 11, 2012 06:20
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 Wardrop/1797100 to your computer and use it in GitHub Desktop.
Save Wardrop/1797100 to your computer and use it in GitHub Desktop.
Snippet of controller file
module Tombstone
App.controller :reservation do
get :new do
@root_places = Place.with_child_count.filter(:parent_id => nil).order(:name).naked.all
render 'reservation/new'
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment