Skip to content

Instantly share code, notes, and snippets.

@forforf
Created October 2, 2012 16:14
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 forforf/3820515 to your computer and use it in GitHub Desktop.
Save forforf/3820515 to your computer and use it in GitHub Desktop.
Integrating Spine Model
model name: post
Rails
1. scaffold rails controller post
2. add resource :posts to config/routes.rb
3. delete any views in views/posts EXCEPT for index
4 .replace index content with just qQuery loader (in haml)
#app
:javascript
jQuery(function(){
new App({el: $("#app")})
});
5. append App.Post to index.js.coffee
6. rails g spine:scaffold post title content etc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment