https://github.com/pseudomuto/rails-template
An application template for my rails apps
https://github.com/pseudomuto/rails-template
Last synced: about 1 year ago
JSON representation
An application template for my rails apps
- Host: GitHub
- URL: https://github.com/pseudomuto/rails-template
- Owner: pseudomuto
- Created: 2012-12-17T18:54:13.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2013-06-20T13:10:56.000Z (almost 13 years ago)
- Last Synced: 2025-01-30T14:52:35.905Z (over 1 year ago)
- Language: Ruby
- Size: 109 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Purpose
==============
This is an application template I use for creating new rails apps. Basically the template:
- Switches the layout engine to Haml
- Generates app/controllers/HomeController and adds an index action
- Generates app/views/home/index.html.haml
- Adds "root to: 'home#index'" to config/routes.rb
Optionally does the following:
==============================
The template will ask whether or not you want to use these features/gems:
- Add and install RSpec
- Add and install Cucumber
- Add and install twitter-bootstrap-rails (with less), using therubyracer (will fix later)
- removes /app/views/layouts/application.html.erb
- creates fluid layout at /app/views/layouts/application.html.haml
- Inits and Initial Commit for Git
- create .gitignore with common rails exlusions
- git init and git add '.'
- git commit -a -m "Initial commit."
Usage
=====
Assuming you intend to use RSpec, you will probably want to pass -T to exlude Test::Unit. Perfectly same to
omit if you intend on not using RSpec (though I'd like to know why :/)
`rails new myappname -m -T`
If you prefer not to clone/fork/download the template, you can call it directly from the command line
`rails new myappname -m https://github.com/pseudomuto/rails-template/raw/master/main-template.rb -T`