• Stars
    star
    110
  • Rank 316,770 (Top 7 %)
  • Language
    Ruby
  • Created over 14 years ago
  • Updated over 13 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Application generator for Rails3

Rails 3, RSpec, Fabrication or Factory Girl, Haml, and jQuery

Usage

Easily generate a Rails 3 application with RSpec, Factory Girl, Haml, and jQuery in one line:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/app.rb

Need Cucumber?

Use this generator file instead:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/cuke.rb

Want Fabrication instead of Factory Girl?

Use either of the following generators instead:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/fabrication.rb

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/fabrication_cuke.rb

Use MongoMapper?

Use this generator file:

% rails new my_app --skip-bundle -J -T -m \
https://github.com/leshill/rails3-app/raw/master/mongomapper.rb

rvm

We love rvm, so the application has an .rvmrc generated to specify a gemset.

Generators

We use the Factory Girl and Haml Rails 3 generators โ€” the generators for RSpec and Fabrication are packaged within their respective gems. The Factory Girl and Haml generators are from the haml-rails and factory_girl_generator gems.

jQuery

We use the jquery-rails generator to pull in the latest and greatest jQuery into the app.

git

We love git, so the application has a git repo initialized with all the initial changes staged.

Wrap Up

After the application has been generated, there are a few final command to finish the install, check the output!

Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I donโ€™t break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

More Repositories

1

handlebars_assets

Use handlebars.js templates with the Rails asset pipeline.
Ruby
646
star
2

resque_spec

RSpec matcher for Resque
Ruby
295
star
3

hogan_assets

Compiles your mustache templates with hogan.js on sprockets and the Rails asset pipeline.
Ruby
139
star
4

vim-json

Syntax highlighting for JSON in Vim
Vim Script
95
star
5

backbone_and_rails_example

Example for my talk 'Getting started with Backbone and Rails' at http://blog.leshill.org/backbone_and_rails_magma
Ruby
41
star
6

open_pod_bay

Open a podโ€™s workspace
Ruby
30
star
7

mongodoc

Ruby ODM for MongoDB
Ruby
28
star
8

fast_specs

Example app showing how to write fast_specs
Ruby
28
star
9

bouncy_bots

A simple negative captcha for Rails
Ruby
13
star
10

heroku-thor

Manage your Heroku config vars
Ruby
13
star
11

factory_girl_generator

Rails3 generator gem for factory girl
Ruby
9
star
12

backbone_and_rails_magma

Getting Started with Backbone and Rails, 25 things you need to know
JavaScript
7
star
13

aws-ext

Extensions for aws-s3
Ruby
6
star
14

leshill.github.com

Les Hill
HTML
5
star
15

handlebars_assets_example

Example app showing how to use handlebars_assets
Ruby
4
star
16

mongosf

Mongoid 2.0 presentation
Ruby
3
star
17

js_assets

Precompile assets built with JavaScript compilers, for example mustache templates compiled by `handlebars.js`.
Ruby
2
star
18

resquecedar

Using Resque on the new Heroku Cedar stack
Ruby
2
star
19

covid-19-visualization

Visualizing Covid-19 case counts by county in the US
TypeScript
1
star
20

mongosf_demo

Ruby Workshop at MongoSF
Ruby
1
star
21

just_rack

Just a rack application for debugging
Ruby
1
star
22

mongo_doc-rails

Ruby
1
star