Sha256: b7590168d8310cc06321bb4a8e6f46341f33d2ce1edbb60d4acb115ac316d7ea
Contents?: true
Size: 1.08 KB
Versions: 4
Compression:
Stored size: 1.08 KB
Contents
# create rvmrc file # create_file ".rvmrc", "rvm gemset create '#{app_name}' \nrvm gemset use '#{app_name}'" after_bundler do # clean up rails defaults remove_file "public/index.html" remove_file "public/images/rails.png" generate "controller home index" gsub_file "app/controllers/home_controller.rb", /def index/, <<-RUBY def index flash.now[:notice] = "Welcome! - love App Scrolls" RUBY route "root :to => 'home#index'" run "mv README.rdoc RAILS_README.rdoc" remove_file "README.rdoc" create_file "README.md", <<-README # ReadMe ## Deployment ``` ey deploy ``` Remove ## Thanks The original scaffold for this application was created by [App Scrolls](http://appscrolls.org). The project was created with the following scrolls: #{ scrolls.map {|r| "* #{r}"}.join("\n")} README if scrolls.include? 'git' append_file ".gitignore", "\nconfig/database.yml" append_file ".gitignore", "\npublic/system" end end after_everything do rake "db:migrate" end __END__ name: Rails Basics description: Best practices for new Rails apps author: drnic run_before: [git]
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
appscrolls-0.8.4 | scrolls/rails_basics.rb |
appscrolls-0.8.3 | scrolls/rails_basics.rb |
appscrolls-0.8.2 | scrolls/rails_basics.rb |
appscrolls-0.8.1 | scrolls/rails_basics.rb |