Skip to content

Instantly share code, notes, and snippets.

@mulderp
Created September 3, 2012 20:43
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 mulderp/3613287 to your computer and use it in GitHub Desktop.
Save mulderp/3613287 to your computer and use it in GitHub Desktop.
Spine / Rails template
gem("rspec-rails", :group => "test")
gem("cucumber-rails", :group => "test")
gem("spine-rails")
gem("eco")
gem("mongoid")
if yes?("Would you like to install Devise?")
gem("devise")
generate("devise:install")
model_name = ask("What would you like the user model to be called? [user]")
model_name = "user" if model_name.blank?
generate("devise", model_name)
end
run "rm public/index.html"
run "rails g scaffold post title:string content:string"
run "rails generate mongoid:config"
git :init
git :add => "."
git :commit => "-a -m 'Initial commit'"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment