-
-
Save zh/1632148 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| project :test => :rspec, :orm => :activerecord, :script => :jquery, :renderer => :erb | |
| # admin interface | |
| generate :admin | |
| rake "ar:create ar:migrate" | |
| rake :seed | |
| git :init | |
| git :add, "." | |
| git :commit, "initial commit - admin interface" | |
| # post model | |
| generate :model, "post title:string body:text --a app" | |
| inject_into_file "db/migrate/002_create_posts.rb","t.timestamps", :after => "t.text :body¥n" | |
| rake "ar:migrate" | |
| # posts controller | |
| generate :controller, "posts get:index get:show" | |
| # posts admin page | |
| generate "admin_page post" | |
| git :init | |
| git :add, "." | |
| git :commit, "Post model and admin page added" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment