Skip to content

Instantly share code, notes, and snippets.

@rodriguezartav
Created October 13, 2011 18:28
Show Gist options
  • Save rodriguezartav/1285039 to your computer and use it in GitHub Desktop.
Save rodriguezartav/1285039 to your computer and use it in GitHub Desktop.
config/routes.rb snipped for a simple javascript application that uses spine and stitch
[APP_NAME]::Application.routes.draw do
resources :posts
root :to => "pages#home"
match 'home' => "pages#home"
match 'apps/app.js' => Stitch::Server.new(:paths => ["app/assets/javascripts/app", "app/assets/javascripts/lib"])
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment