Skip to content

Instantly share code, notes, and snippets.

@mikespokefire
Created June 27, 2012 19:32
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 mikespokefire/3006273 to your computer and use it in GitHub Desktop.
Save mikespokefire/3006273 to your computer and use it in GitHub Desktop.
def index
@all_coasters = Coaster.all
@coasters = @all_coasters
Coaster.include_root_in_json = false
end
Neiltonge::Application.routes.draw do
root :to => 'pages#home'
resources :coasters do
end
get "/coasters/grid" => "coasters#index", :defaults => {:view => "grid"}, :as => :grid_coasters
get "/coasters/table" => "coasters#index", :defaults => {:view => "table"}, :as => :table_coasters
get "/coasters/worldmap" => "coasters#index", :defaults => {:view => "worldmap"}, :as => :worldmap_coasters
resources :parks
resources :albums, :only => [:index, :show]
resources :collections, only: [:index, :show] do
resources :albums, :only => [:index, :show]
end
get "home" => "pages#home"
get "tech" => "pages#tech"
get "contact" => "contact#new", :as => "contact"
post "contact" => "contact#create"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment