Created
October 2, 2012 16:14
-
-
Save forforf/3820515 to your computer and use it in GitHub Desktop.
Integrating Spine Model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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