Git Product home page Git Product logo

rails3-app's Introduction

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.

rails3-app's People

Contributors

ashchan avatar elizabrock avatar leshill avatar therubymug avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

rails3-app's Issues

`open_loop': redirection forbidden:

Hi guys!

I would love to use your rails3 app template, but keep getting this:

$ rails new new -J -T -m http://github.com/leshill/rails3-app/raw/master/app.rb
create
create README
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/mailers
create app/models
create app/views/layouts/application.html.erb
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create doc
create doc/README_FOR_APP
create lib
create lib/tasks
create lib/tasks/.gitkeep
create log
create log/server.log
create log/production.log
create log/development.log
create log/test.log
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/index.html
create public/robots.txt
create public/images
create public/images/rails.png
create public/stylesheets
create public/stylesheets/.gitkeep
create public/javascripts
create public/javascripts/.gitkeep
create public/javascripts/application.js
create script
create script/rails
create tmp
create tmp/sessions
create tmp/sockets
create tmp/cache
create tmp/pids
create vendor/plugins
create vendor/plugins/.gitkeep
apply http://github.com/leshill/rails3-app/raw/master/app.rb
apply http://github.com/leshill/rails3-app/raw/master/app.rb
/Users/ovsiiko/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/open-uri.rb:216:in open_loop': redirection forbidden: http://github.com/leshill/rails3-app/raw/master/app.rb -> https://github.com/leshill/rails3-app/raw/master/app.rb (RuntimeError) from /Users/ovsiiko/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/open-uri.rb:146:inopen_uri'
from /Users/ovsiiko/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/open-uri.rb:671:in open' from /Users/ovsiiko/.rvm/rubies/ruby-1.9.2-p0/lib/ruby/1.9.1/open-uri.rb:33:inopen'
from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/actions.rb:212:in apply' from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/generators/rails/app/app_generator.rb:300:inapply_rails_template'
from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/task.rb:22:in run' from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/invocation.rb:118:ininvoke_task'
from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in block in invoke_all' from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:ineach'
from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:in map' from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/invocation.rb:124:ininvoke_all'
from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/group.rb:226:in dispatch' from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/thor-0.14.6/lib/thor/base.rb:389:instart'
from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/commands/application.rb:18:in <top (required)>' from <internal:lib/rubygems/custom_require>:29:inrequire'
from internal:lib/rubygems/custom_require:29:in require' from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/railties-3.0.3/lib/rails/cli.rb:14:in<top (required)>'
from internal:lib/rubygems/custom_require:29:in require' from <internal:lib/rubygems/custom_require>:29:inrequire'
from /Users/ovsiiko/.rvm/gems/ruby-1.9.2-p0/gems/rails-3.0.3/bin/rails:4:in <top (required)>' from /usr/local/bin/rails:19:inload'
from /usr/local/bin/rails:19:in `

'

$ ruby -v
ruby 1.9.2p0 (2010-08-18 revision 29036) [x86_64-darwin10.4.0]
$ which gem
/Users/ovsiiko/.rvm/rubies/ruby-1.9.2-p0/bin/gem

Any suggestions appreciated

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.