KudosX / template.rb

Rails Template File with Bootstrap and Postgresql for Rails 5.0.0.beta3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rails Template File with Bootstrap and Postgresql for Rails 5.0.0.rc1:

invoking template: rails new myapp -m template.rb --database=postgresql

Template installs gems and runs commands to add/delete files and add/insert content to other files

Pages modified:

  • creates notes.md that is in .gitignore
  • appends README.md
  • creates new .gitignore with all possible ignore files/extensions
  • removes test directory
  • removes application.css and adds application.css.scss with bootstrap scss defaults
  • replaces application.js file prefilled out
  • replaces application_helper.rb with title script
  • replaces application.html.erb with stock scripts and renders
  • creates _shim.html.erb file
  • creates _header.html.erb file
  • creates _footer.html.erb file
  • creates new gemfile with preloaded gems
  • prepends code at beginning of view pages after controller script is run
  • removes and creates routes.rb file after controller script is run

Run commands to:

  • install capistrano
  • require capistrano in capfile
  • generate simple_form with bootstrap
  • install and generate rspec
  • create and migrate pgsql database
  • initialize guard
  • initialize git
  • rails g controller static_pages index about faq contact

About

Rails Template File with Bootstrap and Postgresql for Rails 5.0.0.beta3


Languages

Language:Ruby 100.0%