If you are using Rails >= 3.0.4:
rails new app_name -J -m https://github.com/aentos/rails3-templates/main.rb
If you are using an older version of Rails 3, there is a bug in Rails that prevents from using https URLs in the template paths. This was fixed in Rails 3.0.4. More info here. You will have to clone this repo and then provide a relative path on your filesystem, e.g.:
rails new app_name -J -m rails3-templates/main.rb
This template comes with a suite of opinionated components that we find end up using in almost all of our projects. Other components that might depend on the project are presented as a set of questions for you to choose from or skip.
- HAML as default template language
- Compass and related libraries to code your CSS: fancy-buttons
- A CSS framework on top of compass: Choose between 960 Grid System and Blueprint CSS
- jQuery instead of Prototype
- inherited_resources to help you keep your controllers DRY
- A rake task 'build' for continuous integration
- Capistrano multistage ready to go: It will ask for the repo and server URLs for staging and production and configure your capistrano recipe so you can deploy to both environments from the very beginning
- Heroku: It will prepare your repo for Heroku and it will create your staging and production apps and deploy if you want to.
- or skip this step
Will ask for a list of locales and download them for you
If you opt-in the template will install friendly_id for you to deal with permalinks.
- hoptoad_notifier to track application errors
- exceptional to track your app's errors (this option is activated when deploying to heroku)
Feel free to fork the repo and send pull requests.
If you find bugs please report them in the issue tracker here.
Do you what you want.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.