Giter Site home page Giter Site logo

rails-composer's Introduction

Rails Composer Rails Composer

An application template that creates starter applications for Rails.

It’s the Rails generator on steroids.

Watch the videos:

Sign up for the Rails Composer mailing list Join the RailsApps Project
Rails Composer mailing list Support the project

From the RailsApps Project

The RailsApps open source project offers starter applications and tutorials for Rails developers. Generate the applications with the Rails Composer tool.

All the code is explained in the Capstone Rails Tutorials. You can purchase the Capstone Rails Tutorials to support the project.

Sign up for the Rails Composer mailing list for news and announcements.

Starter Apps and Tutorials

Example Tutorial Comments
learn-rails Learn Ruby on Rails from the book for beginners
rails-bootstrap Rails and Bootstrap Bootstrap front-end framework
rails-foundation Rails and Foundation Foundation front-end framework
rails-mailinglist-activejob Mailing List with Active Job Tutorial sign up for a mailing list using background processing
rails-omniauth OmniAuth Tutorial authentication with OmniAuth
rails-devise Rails Devise Tutorial authentication with Devise
rails-devise-roles Role-Based Authorization authorization with roles
rails-devise-pundit Rails Pundit Tutorial authorization with Pundit
rails-signup-download Rails Signup Download Devise plus download a PDF file
rails-stripe-checkout Stripe Checkout selling a product with Stripe Checkout
rails-stripe-coupons Stripe JS With Coupons complex Rails and Stripe integration

The rails_apps_composer Gem

Do you want to customize the Rails Composer application template? The Rails Composer application template is built from recipes provided by the rails_apps_composer gem.

If You Are New to Rails

If you’re new to Rails, see What is Ruby on Rails?, the book Learn Ruby on Rails, and recommendations for a Rails tutorial.

Dependencies

Before running the Rails Composer tool, you need to install:

  • The Ruby language
  • Rails

Check that appropriate versions of Ruby and Rails are installed in your development environment:
$ ruby -v
$ rails -v

Be sure to read the article Installing Rails to make sure your development environment is set up properly.

How To Use Rails Composer

To build a Rails application using the Rails Composer tool:

$ rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb

Replace myapp with the name of your application.

The $ character indicates a shell prompt; don’t include it when you run the command.

See the “Troubleshooting” section below if you see errors. In general, you’ll avoid problems if you create your application using RVM as described in the next section.

Creating a Starter App Using RVM

I recommend using RVM, the Ruby Version Manager, to manage your Rails versions, as described in the Installing Rails article.

Here’s how to generate a new Rails application using the Rails Composer tool and RVM:

$ mkdir myapp
$ cd myapp
$ rvm use ruby-2.4.0@myapp --ruby-version --create
$ gem install rails
$ rails new . -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb

Instead of installing Rails into the global gemset and running rails new, we’ll create a root directory for a new application, create a new gemset, install Rails, and then generate a starter application.

When we create the gemset, the option “—ruby-version” creates .ruby-version and .ruby-gemset files in the root directory. RVM recognizes these files in an application’s root directory and loads the required version of Ruby and the correct gemset whenever you enter the directory.

When we create the gemset, it will be empty (though it inherits use of all the gems in the global gemset). We immediately install Rails. The command gem install rails installs the most recent stable release of Rails.

Finally we run rails new .. We use the Unix “dot” convention to refer to the current directory. This assigns the name of the directory to the new application.

This approach is different from the way most beginners are taught to create a Rails application. Our approach makes it easy to create a project-specific gemset to avoid clashes between gem versions when using the Rails Composer tool.

Choose a RailsApps Starter Application

Use Rails Composer to generate any of the example applications from the RailsApps project. You’ll be able to choose your own project name when you generate the app. Generating the application gives you additional options.

To build the example application, Rails must be installed in your development environment.

You’ll see a prompt:

option  Build a starter application?
    1)  Build a RailsApps example application
    2)  Contributed applications
    3)  Custom application

Enter “1” to select Build a starter application. You’ll see a prompt:

option  Choose a starter application.
    1)  learn-rails
    2)  rails-bootstrap
    3)  rails-foundation
    4)  rails-mailinglist-activejob
    5)  rails-omniauth
    6)  rails-devise
    7)  rails-devise-roles
    8)  rails-devise-pundit
    9)  rails-signup-download
   10)  rails-stripe-checkout
   11)  rails-stripe-coupons

Each of these applications is available as an example in the RailsApps GitHub repo and each is accompanied by a tutorial on the Capstone Rails Tutorials site.

Make your choice. The Rails Composer tool may give you other options (other applications may have been added since these notes were written).

Options

The application generator template will ask you for additional preferences. Options vary, depending on the example application you build. Options may have changed in a newer version of Rails Composer.

 option  Web server for development?
       1)  WEBrick (default)
       2)  Thin
       3)  Unicorn
       4)  Puma
       5)  Phusion Passenger (Apache/Nginx)
       6)  Phusion Passenger (Standalone)
 option  Web server for production?
       1)  Same as development
       2)  Thin
       3)  Unicorn
       4)  Puma
       5)  Phusion Passenger (Apache/Nginx)
       6)  Phusion Passenger (Standalone)
 option  Database used in development?
       1)  SQLite
       2)  PostgreSQL
       3)  MySQL
 option  Template engine?
       1)  ERB
       2)  Haml
       3)  Slim
 option  Test framework?
       1)  None
       2)  RSpec with Capybara
 option  Front-end framework?
       1)  None
       2)  Bootstrap 3.0
       3)  Bootstrap 2.3
       4)  Zurb Foundation 5.0
       5)  Zurb Foundation 4.0
       6)  Simple CSS
 option  Install page-view analytics?
       1)  None
       2)  Google Analytics
       3)  Segment.io
   extras  Set a robots.txt file to ban spiders? (y/n)
   extras  Create a GitHub repository? (y/n)
   extras  Use or create a project-specific rvm gemset? (y/n)

Web Servers

If you plan to deploy to Heroku, select Puma as your production webserver. Puma is recommended by Heroku.

Database

Choose “SQLite” for the easiest setup. If you choose PostgreSQL or MySQL, the databases must be installed and running before you run Rails Composer.

Template Engine

The example applications use the default “ERB” Rails template engine. Optionally, you can use another template engine, such as Haml or Slim. See instructions for Haml and Rails.

Testing

If you are a beginner, select “None.” Select “RSpec with Capybara” if you want tests.

Front-end Framework

If you choose a front-end framework, you’ll get an application layout file, plus navigation and flash messages, styled with a default theme.

Other Choices

Set a robots.txt file to ban spiders if you want to keep your new site out of Google search results.

If you choose to create a GitHub repository, the generator will prompt you for a GitHub username and password.

It is a good idea to use RVM, the Ruby Version Manager, and create a project-specific rvm gemset (not available on Windows). See Installing Rails.

Contributed Applications

Currently, there are no contributed applications available. If you would like to add your favorite starter application to Rails Composer, open an issue to let us know.

Build Your Own Application

If you choose “Custom application,” you will get a wide set of choices. Not all are actively supported.

A large community of developers contributes code that supports additional gems and favorite configurations offered with the “build your own options.” However, not all contributions are actively maintained. That means not all options are tested or fully supported, so you may need to spend time debugging a “build your own application.”

When you choose “Custom application,” you will see something similar to this:

option  Build a starter application?
      1)  Build a RailsApps example application
      2)  Contributed applications
      3)  Custom application

option  Web server for development?
      1)  WEBrick (default)
      2)  Thin
      3)  Unicorn
      4)  Puma
      5)  Phusion Passenger (Apache/Nginx)
      6)  Phusion Passenger (Standalone)

option  Web server for production?
      1)  Same as development
      2)  Thin
      3)  Unicorn
      4)  Puma
      5)  Phusion Passenger (Apache/Nginx)
      6)  Phusion Passenger (Standalone)

option  Database used in development?
      1)  SQLite
      2)  PostgreSQL
      3)  MySQL

option  Template engine?
      1)  ERB
      2)  Haml
      3)  Slim

option  Test framework?
      1)  None
      2)  RSpec with Capybara

option  Continuous testing?
      1)  None
      2)  Guard

option  Front-end framework?
      1)  None
      2)  Bootstrap 3.0
      3)  Bootstrap 2.3
      4)  Zurb Foundation 5.0
      5)  Zurb Foundation 4.0
      6)  Simple CSS

option  Add support for sending email?
      1)  None
      2)  Gmail
      3)  SMTP
      4)  SendGrid
      5)  Mandrill

option  Authentication?
      1)  None
      2)  Devise
      3)  OmniAuth

option  Devise modules?
      1)  Devise with default modules
      2)  Devise with Confirmable module

option  Authorization?
      1)  None
      2)  Pundit

option  Use a form builder gem?
      1)  None
      2)  SimpleForm

option  Install a starter app?
      1)  None
      2)  Home Page
      3)  Home Page, User Accounts
      4)  Home Page, User Accounts, Admin Dashboard

extras  Add 'therubyracer' JavaScript runtime (for Linux users without node.js)? (y/n)
extras  Set a robots.txt file to ban spiders? (y/n)
extras  Create a GitHub repository? (y/n)

option  Add gem and file for environment variables?
      1)  None
      2)  Add .env with Foreman
      3)  Add application.yml with Figaro

extras  Reduce assets logger noise during development? (y/n)
extras  Improve error reporting with 'better_errors' during development? (y/n)
extras  Use 'pry' as console replacement during development and test? (y/n)
extras  Use or create a project-specific rvm gemset? (y/n)

option  Add a deployment mechanism?
      1)  None
      2)  Capistrano3

Run the Application

Switch to the application directory to examine and test what you’ve built.

$ cd myapp

Quick Test

For a “smoke test” to see if everything runs, display a list of Rake tasks.

$ rake -T

There’s no need to run bundle exec rake instead of rake when you are using rvm (see rvm and bundler integration).

Start the Web Server

If you’ve chosen WEBrick or Thin for your web server, can run the app by entering the command:

$ rails server

To see your application in action, open a browser window and navigate to http://localhost:3000/.

For the Unicorn web server:

$ unicorn

See the app at http://localhost:8080/.

For the Puma web server:

$ rails server puma

See the app at http://localhost:3000/.

For Phusion Passenger (Apache or Nginx integration mode), please refer to the official documentation.

For Phusion Passenger (Standalone):

$ passenger start

Login

If you’ve created a version of the application that sets up a default user, log in with:

You should delete or change any pre-configured logins before you deploy your application.

Testing

Some versions of the starter application will contain a suite of RSpec feature and unit tests.

Run rspec to run all RSpec tests.

Please send the author a message, create an issue, or submit a pull request if you want to contribute improved RSpec tests.

Deployment

For easy deployment, use a “platform as a service” provider such as:

For deployment on Heroku, see the article:

Troubleshooting

Problems? Please check both issues for the Rails Composer tool and the issues for the rails_apps_composer gem.

You should review the article Installing Rails to make sure you’ve updated all the components that are required to run Rails successfully.

Problems with “Could not be loaded… You have already activated…”

If you get an error like this:

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
    composer  Running 'after bundler' callbacks.
The template [...] could not be loaded.
Error: You have already activated ..., but your Gemfile requires ....
Using bundle exec may solve this.

It’s due to conflicting gem versions. See the article Rails Error: “You have already activated (…)”.

Problems with “Certificate Verify Failed”

Are you getting an error “OpenSSL certificate verify failed” when you try to generate a new Rails app from an application template? See suggestions to resolve the error Certificate Verify Failed.

Problems with “Segmentation Fault”

If you get a “segfault” when you try rails new, try removing and reinstalling rvm.

Application Template Default

The rails new command creates a new Rails application. If you want to use the Rails Composer application template for every Rails application you build, you can set options for the rails new command in a .railsrc file in your home directory. Here’s how to set up a .railsrc file to use the template when you create a new Rails application:

# ~/.railsrc
-m https://raw.github.com/RailsApps/rails-composer/master/composer.rb

Documentation and Support

The Rails Composer application template is assembled from recipes supplied by the rails_apps_composer gem. See the rails_apps_composer project to understand how the Rails Composer application works.

Customizing the Template

If you wish to change the template to generate an app with your own customized options, you can copy and edit the template file. However, it is better to use the rails_apps_composer gem to create a new application template. You’ll find newer versions of the recipes that make up the application template. You may find issues have been identified and (perhaps) fixed. And it will be easier to maintain your application template if you work from the rails_apps_composer gem.

Writing Recipes

To understand the code in these templates, take a look at Thor::Actions. Your recipes can use any methods provided by Thor::Actions or Rails::Generators::Actions. A big thanks to Yehuda Katz for creating Thor.

About Rails Application Templates

There is an unfinished Rails Guide on Rails Application Templates.

Also see:

Cooking Up A Custom Rails 3 Template (11 Oct 2010) by Andrea Singh
Rails Application Templates (16 Sept 2010) by Collin Schaafsma
Application templates in Rails 3 (18 Sept 2009) by Ben Scofield
Railscasts: App Templates in Rails 2.3 (9 Feb 2009) by Ryan Bates
Rails templates (4 Dec 2008) by Pratik Naik

Similar Projects

There are many similar projects:

Issues

Problems? Please check both issues for the Rails Composer tool and the issues for the rails_apps_composer gem.

Where to Get Help

Your best source for help with problems is Stack Overflow. Your issue may have been encountered and addressed by others.

Use the tag “railsapps” on Stack Overflow for extra attention.

Contributing

Please make changes to the rails_apps_composer gem rather than changing the Rails Composer application template.

Credits

Daniel Kehoe initiated the RailsApps project. The rails_apps_composer gem is derived from Michael Bleigh’s RailsWizard gem.

Is it useful to you? Follow the project on Twitter:
@rails_apps
and tweet some praise. I’d love to know you were helped out by what I’ve put together.

License

MIT License

Copyright 2012-14 Daniel Kehoe

Useful Links

Getting Started Articles Tutorials
Ruby on Rails Analytics for Rails Rails Bootstrap
What is Ruby on Rails? Heroku and Rails Rails Foundation
Learn Ruby on Rails JavaScript and Rails RSpec Tutorial
Rails Tutorial Rails Environment Variables Rails Devise Tutorial
Ruby on Rails Tutorial for Beginners Git and GitHub with Rails Devise RSpec
Install Ruby on Rails Send Email with Rails Devise Bootstrap
Install Ruby on Rails – Mac OS X Haml and Rails Rails Membership Site with Stripe
Install Ruby on Rails – Ubuntu Rails Application Layout Rails Subscription Site with Recurly
Ruby on Rails – Nitrous.io HTML5 Boilerplate for Rails Startup Prelaunch Signup Application
Update Rails Example Gemfiles for Rails
Rails Composer Rails Application Templates
Rails Examples Rails Product Planning
Rails Starter Apps Rails Project Management

rails-composer's People

Contributors

auxbuss avatar bonsaiben avatar danielkehoe avatar deltakilo avatar eddievlagea avatar foobarwidget avatar groe avatar jkrup avatar likethesky avatar thecause avatar tvarley 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  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

rails-composer's Issues

SSH issues

I tried following the directions, and received the following:
apply https://raw.github.com/RailsApps/rails-composer/master/composer.rb
/usr/local/rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError)

Yes, I have SSH set up with github, and tested it several ways. I can git clone the package, but I get the same type of error a few lines later in the run.

Any help would be greatly appreciated. Is there a requirement for specific version of Ruby and Rails?

John

Twitter Bootstrap javascript (dropdown)

I couldn't get twitter bootstrap dropdown to work on a rails app I am building using the composer...Google it and found that you need to change the load order in the application.js, see below

//= require bootstrap //= require jquery //= require jquery_ujs //= require_tree .

This fix the dropdown issue, not sure if something else will break? Has anyone had a similar issue? Hope this helps!

MySQL Can't Connect

When I select MySQL and Devise I get a bunch of "Can't Connect to localhost 10061 errors"

I'm definitely running MySQL with default username of root and no password (checked with mysql workbench, and ran mysqld P 10061).

(Side note: Would be nice to have the option to set which port mysql is running on as well as username and password. By default it runs on port 3306 but the rails-composer looks for 10061)

rake Cucumber error

I'm working on Ubuntu 12.04.
All five sign_up.feature failing with this messages:
When I sign up with valid user data # features/step_definitions/user_steps.rb:81
Ambiguous match, found 2 elements matching field "Password" (Capybara::Ambiguous)

How can I solve this problem?

postgresql authentication issues

for me it fails because - try to create new role ( i don't need this in development environment )

is it possible to overvrite - stop composer from doing that - asking for username and password would be perfectly fine

      gems  Creating a user named some_project_title for PostgreSQL
         run    createuser some_project_title from "."
Shall the new role be a superuser? (y/n) n
Shall the new role be allowed to create databases? (y/n) n
Shall the new role be allowed to create more new roles? (y/n) n
createuser: creation of new role failed: ERROR:  permission denied to create role
        gsub    config/database.yml
        gsub    config/database.yml
        gsub    config/database.yml
        gsub    config/database.yml
    question  Drop any existing databases named some_project_title?
          1)  Yes (continue)
          2)  No (abort)
        gems  Enter your selection: 1
         run    bundle exec rake db:drop from "."
Couldn't drop spt_development : #<PG::Error: FATAL:  Peer authentication failed for user "some_project_title"
>
Couldn't drop spt_test : #<PG::Error: FATAL:  Peer authentication failed for user "some_project_title"
>
         run    bundle exec rake db:create:all from "."
FATAL:  Peer authentication failed for user "some_project_title"
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213:in `initialize'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213:in `new'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:1213:in `connect'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:329:in `initialize'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `new'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/postgresql_adapter.rb:28:in `postgresql_connection'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:309:in `new_connection'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:319:in `checkout_new_connection'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:241:in `block (2 levels) in checkout'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `loop'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:236:in `block in checkout'
/home/mc/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:233:in `checkout'
/home/mc/.rvm/gems/ruby-1.9.3-p194@spt/gems/activerecord-3.2.8/lib/active_record/connection_adapters/abstract/connection_pool.rb:96:in `block in connection'
/home/mc/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'

temporarary solution for me was to create this role separately before launching generator

Devise error about confirmation_url and :host parameter

Here's some error when seeding the database with dummy users.

         run    bundle exec rake db:test:prepare from "."
         run    bundle exec rake db:seed from "."
SETTING UP DEFAULT USER LOGIN
rake aborted!
Missing host to link to! Please provide the :host parameter, set default_url_options[:host], or set :only_path to true
/home/jeremy/.rvm/gems/ruby-1.9.3-p327@inds/gems/actionpack-3.2.9/lib/action_dispatch/http/url.rb:25:in `url_for'
/home/jeremy/.rvm/gems/ruby-1.9.3-p327@inds/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:591:in `url_for'
/home/jeremy/.rvm/gems/ruby-1.9.3-p327@inds/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:340:in `url_for'
/home/jeremy/.rvm/gems/ruby-1.9.3-p327@inds/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:213:in `user_confirmation_url'
/home/jeremy/.rvm/gems/ruby-1.9.3-p327@inds/gems/actionpack-3.2.9/lib/action_dispatch/routing/routes_proxy.rb:29:in `user_confirmation_url'
/home/jeremy/.rvm/gems/ruby-1.9.3-p327@inds/gems/actionpack-3.2.9/lib/action_dispatch/routing/routes_proxy.rb:32:in `method_missing'
/home/jeremy/.rvm/gems/ruby-1.9.3-p327@inds/gems/devise-2.1.2/lib/devise/controllers/url_helpers.rb:50:in `confirmation_url'

seeds.rb Mongoid

Role.create([
{ :name => 'admin' },
{ :name => 'user' },
{ :name => 'business' }
], :without_protection => true)

CREATING ROLES
rake aborted!
undefined method `each_pair' for [{:name=>"admin"}, {:name=>"user"}, {:name=>"VIP"}]:Array

Role.mongo_session['roles'].insert([
{ :name => 'admin' },
{ :name => 'user' },
{ :name => 'business' }
])

CREATING ROLES
SETTING UP DEFAULT USER LOGIN
New user created: First User
New user created: Second User

https://gist.github.com/1698098

Sprockets::CircularDependencyError in Home#index on new install

When I just installed, I got this error:

 Sprockets::CircularDependencyError in Home#index

This is because when I was going through the settings I chose the option for all the pages (Home, About Us, etc.).

The fix I found, is just deleting the application.css file, because it looks like the recipe adds an application.css.scss file - which does the same thing.

Now everything works perfectly!

Not getting all the options when I try to make a new app

When I run: $ rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb

After I answer this question:
question Template engine? 1) ERB 2) Haml 3) Slim

I don't get asked any of these questions:
`question Unit testing?
1) Test::Unit
2) RSpec

question Integration testing?
1) None
2) RSpec with Capybara
3) Cucumber with Capybara
4) Turnip with Capybara

question Fixture replacement?
1) None
2) Factory Girl
3) Machinist

question Front-end framework?
1) None
2) Twitter Bootstrap
3) Zurb Foundation
4) Skeleton
5) Just normalize CSS for consistent styling

question Twitter Bootstrap version?
1) Twitter Bootstrap (Less)
2) Twitter Bootstrap (Sass)

question Add support for sending email?
1) None
2) Gmail
3) SMTP
4) SendGrid
5) Mandrill

question Authentication?
1) None
2) Devise
3) OmniAuth

question Devise modules?
1) Devise with default modules
2) Devise with Confirmable module
3) Devise with Confirmable and Invitable modules

question Authorization?
1) None
2) CanCan with Rolify

question Use a form builder gem?
1) None
2) SimpleForm

question Install a starter app?
1) None
2) Home Page
3) Home Page, User Accounts
4) Home Page, User Accounts, Admin Dashboard

extras Add 'therubyracer' JavaScript runtime (for Linux users without node.js)? (y/n)`

It just skips to:
extras Set a robots.txt file to ban spiders? (y/n) n extras Create a project-specific rvm gemset and .rvmrc? (y/n) n extras Create a GitHub repository? (y/n)

Meta tags are incorrectly nested in HAML

I just ran this:

rails new folio -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb

Latest commit I see on github is f3793ec.

Diagnostics:

Recipes:
["auth", "controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "railsapps", "readme", "routes", "setup", "testing", "views"]

Preferences:
{:git=>true, :railsapps=>"none", :dev_webserver=>"unicorn", :prod_webserver=>"unicorn", :database=>"postgresql", :templates=>"haml", :unit_test=>"test_unit", :integration=>"none", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"sendgrid", :authentication=>"devise", :devise_modules=>"default", :authorization=>"none", :starter_app=>"home_app", :form_builder=>"simple_form"}

The meta tags look like this:

<!doctype html>
%html
  %head
    %meta{:charset => "utf-8"}
      %meta{:content => "IE=edge,chrome=1", "http-equiv" => "X-UA-Compatible"}
        %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
          %title= content_for?(:title) ? yield(:title) : "Folio"
          %meta{:content => "", :name => "description"}
            %meta{:content => "", :name => "author"}
              = stylesheet_link_tag    "application", :media => "all"
              = javascript_include_tag "application"
              = csrf_meta_tags
              = yield(:head)

set up postgre user was freezed at "Drop any existing databases..." issue

i have created new app and used postgre database in development, when setup came to step:

composer  Running 'after bundler' callbacks.
      remove    config/database.yml
      create    config/database.yml
        gems  Creating a user named 'online_test_app' for PostgreSQL
         run    createuser online_test_app from "."
Shall the new role be a superuser? (y/n) y
        gsub    config/database.yml
        gsub    config/database.yml
        gsub    config/database.yml
        gsub    config/database.yml
    question  Drop any existing databases named online_test_app?
          1)  Yes (continue)
          2)  No (abort)
        gems  Enter your selection: y
        gems  Enter your selection: y
        gems  Enter your selection: y
        ...

it couldn't go on to finish creating my app. If I used SQLite then set up new app has no problem. Can anybody help me solve this and show me what is this error?

Changes made on 20121010 brakes mongoid.yml generation

Hey,

the changes made on a591973#L0R36
brakes the mongoid.yml generation when creating an rails3-mongoid-devise sample application, with webrick and slim.
Also fails when generation cucumber setup.

Please let me know if you need more info.
Two days ago was working perfectly.

Best.

RVM generator breaks

just tested on ubuntu 12.04

if i set 'Create a project-specific rvm gemset and .rvmrc?'

 extras  creating RVM gemset 'booher_family'
https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1925:in `apply': uninitialized constant Rails::Generators::AppGenerator::RVM (NameError)
    from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/generators/app_base.rb:109:in `apply_rails_template'
    from (eval):1:in `apply_rails_template'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/task.rb:27:in `send'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/task.rb:27:in `run'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/invocation.rb:120:in `invoke_task'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `invoke_all'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/shell.rb:14:in `map'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/core_ext/ordered_hash.rb:75:in `each'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `map'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/invocation.rb:126:in `invoke_all'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/group.rb:238:in `dispatch'
    from /var/lib/gems/1.8/gems/thor-0.16.0/lib/thor/base.rb:425:in `start'
    from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/commands/application.rb:38
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:55:in `require'
    from /var/lib/gems/1.8/gems/railties-3.2.8/lib/rails/cli.rb:15
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:55:in `gem_original_require'
    from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:55:in `require'
    from /var/lib/gems/1.8/gems/railties-3.2.8/bin/rails:7
    from /usr/local/bin/rails:19:in `load'
    from /usr/local/bin/rails:19
...

When you create a project-specific rvm gemset and .rvmrc the composer fails

This happens with RVM 1.15.8

https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1655:in rescue in apply': rvm failure: unable to use gemset lunch (RuntimeError) from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1652:inapply'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/actions.rb:221:in instance_eval' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/actions.rb:221:inapply'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/generators/app_base.rb:109:in apply_rails_template' from (eval):1:inapply_rails_template'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/task.rb:27:in run' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/invocation.rb:120:ininvoke_task'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/invocation.rb:126:in block in invoke_all' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/invocation.rb:126:ineach'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/invocation.rb:126:in map' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/invocation.rb:126:ininvoke_all'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/group.rb:238:in dispatch' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.15.4/lib/thor/base.rb:425:instart'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/commands/application.rb:38:in <top (required)>' from /Users/drewbaumann/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire'
from /Users/drewbaumann/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/lib/rails/cli.rb:15:in<top (required)>'
from /Users/drewbaumann/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' from /Users/drewbaumann/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.6/bin/rails:7:in <top (required)>' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/bin/rails:19:inload'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/bin/rails:19:in <main>' from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:ineval'
from /Users/drewbaumann/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `

'

Twitter Bootstrap 2.1.3 throws an error when app is pushed to Heroku

So once you chose the Twitter Bootstrap option, Rails Composer puts the gem in the group :assets in the Gemfile.

Turns out, that creates problems with Heroku - for some reason.

Once you remove it from the :assets group, Heroku stops throwing a fit.

To see other people that had similar issues - with an earlier version of this gem, you can see it here: seyhunak/twitter-bootstrap-rails#123

Hopefully this will save other people a lot of headaches in the future :)

CanCan authorization doesn't work with OmniAuth authentication

I ran the composer (options below) and when I try to access the app in the browser I get:

undefined method `rescue_from' for #HomeController:0x00000101a550d0

Did I choose invalid options?

thanks!
Gary


Recipes:
["auth", "controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "railsapps", "readme", "routes", "setup", "testing", "views"]

Preferences:
{:git=>true, :railsapps=>"none", :dev_webserver=>"webrick", :database=>"postgresql", :templates=>"erb", :unit_test=>"rspec", :integration=>"capybara", :fixtures=>"factory_girl", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"gmail", :authentication=>"omniauth", :omniauth_provider=>"facebook", :authorization=>"cancan", :starter_app=>"admin_app", :form_builder=>"simple_form", :ban_spiders=>true, :rvmrc=>true}


Getting error "You have already activated" right after bundle install is completed and composer could not be loaded

this is the output:

Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
    composer  Running 'after bundler' callbacks.
The template [https://raw.github.com/RailsApps/rails-composer/master/composer.rb] could not be loaded. Error: You have already activated builder 3.0.0, but your Gemfile requires builder 3.0.2. Using bundle exec may solve this.

I'm not sure how to use bundle exec to solve this.

Mongoid+Bootstrap(LESS) fails

Hi,

ive created a new project using Mongoid-devise with TwitterBoostrap(LESS) (recipe 6) which fails with

/.rvm/gems/ruby-1.9.3-p286/gems/railties-3.2.8/lib/rails/railtie/configuration.rb:85:in `method_missing': undefined method `less' for #<Rails::Application::Configuration:0x007f9fffbc2388> (NoMethodError)
    from /.rvm/gems/ruby-1.9.3-p286/gems/twitter-bootstrap-rails-2.1.6/lib/twitter/bootstrap/rails/engine.rb:15:in `block in <class:Engine>'

the SCSS version works like a charm.

Double error div produced when there is a timeout

When you use Devise, and Twitter Bootstrap, in the messages partial - _messages.html.erb, this is what is produced right out of the box:

 <% flash.each do |name, msg| %>
    <div class="alert alert-<%= name == :notice ? "success" : "error" %>">
       <a class="close" data-dismiss="alert">&#215;</a>
       <%= content_tag :div, msg, :id => "flash_#{name}" if msg.is_a?(String) %>
    </div>
 <% end %>

The problem with this is that whenever there is a timeout, there are two flash messages. The second message is simply timedout: true. So, the current code will produce two sets of divs, but no message in the second.

So with this code, it fixes that:

<% flash.each do |name, msg| %>
   <% if msg.is_a?(String) %>
       <div class="alert alert-<%= name == :notice ? "success" : "error" %>">
       <a class="close" data-dismiss="alert">&#215;</a>
       <%= content_tag :div, msg, :id => "flash_#{name}" %>
      </div>
   <% end %>
<% end %>

OpenSSL Error

I tried to create a new app using the template but it is not providing any customization options.

ruby 1.9.3p194 (2012-04-20) [i386-mingw32
rails 3.2.7

help please.

layouts/application.html.haml wrong indentation

cthulhu@elitebook ~/projects $ rails new myapp -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
      create  
      create  README.rdoc
      create  Rakefile
      create  config.ru
      create  .gitignore
      create  Gemfile
      create  app
      create  app/assets/images/rails.png
      create  app/assets/javascripts/application.js
      create  app/assets/stylesheets/application.css
      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  app/mailers/.gitkeep
      create  app/models/.gitkeep
      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/initializers/wrap_parameters.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  lib/assets
      create  lib/assets/.gitkeep
      create  log
      create  log/.gitkeep
      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  script
      create  script/rails
      create  test/fixtures
      create  test/fixtures/.gitkeep
      create  test/functional
      create  test/functional/.gitkeep
      create  test/integration
      create  test/integration/.gitkeep
      create  test/unit
      create  test/unit/.gitkeep
      create  test/performance/browsing_test.rb
      create  test/test_helper.rb
      create  tmp/cache
      create  tmp/cache/assets
      create  vendor/assets/javascripts
      create  vendor/assets/javascripts/.gitkeep
      create  vendor/assets/stylesheets
      create  vendor/assets/stylesheets/.gitkeep
      create  vendor/plugins
      create  vendor/plugins/.gitkeep
       apply  https://raw.github.com/RailsApps/rails-composer/master/composer.rb
         run    bundle update from "."
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/..
Using rake (10.0.2) 
Using i18n (0.6.1) 
Using multi_json (1.4.0) 
Using activesupport (3.2.9) 
Using builder (3.0.4) 
Using activemodel (3.2.9) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.2.2) 
Using actionpack (3.2.9) 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.4.4) 
Using actionmailer (3.2.9) 
Using arel (3.0.2) 
Using tzinfo (0.3.35) 
Using activerecord (3.2.9) 
Using activeresource (3.2.9) 
Using bundler (1.2.2) 
Using coffee-script-source (1.4.0) 
Using execjs (1.4.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Using json (1.7.5) 
Using rdoc (3.12) 
Using thor (0.16.0) 
Using railties (3.2.9) 
Using coffee-rails (3.2.2) 
Using jquery-rails (2.1.4) 
Using rails (3.2.9) 
Using sass (3.2.3) 
Using sass-rails (3.2.5) 
Using sqlite3 (1.3.6) 
Using uglifier (1.3.0) 
Your bundle is updated! Use `bundle show [gemname]` to see where a bundled gem is installed.
 initializer    generators.rb
    composer  WOOT! The recipes you've selected are known to work together.
    composer  Using rails_apps_composer recipes to generate an application.
      insert    config/application.rb
      recipe  Running core recipe...
        core  selected all core recipes
      recipe  Running git recipe...
         git  initialize git
      remove    .gitignore
      create    .gitignore
         run    git init from "."
Initialized empty Git repository in /home/cthulhu/projects/myapp/.git/
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: initial commit" from "."
      recipe  Running railsapps recipe...
    question  Install an example application?
          1)  I want to build my own application
          2)  rails-stripe-membership-saas
          3)  rails-prelaunch-signup
          4)  rails3-bootstrap-devise-cancan
          5)  rails3-devise-rspec-cucumber
          6)  rails3-mongoid-devise
          7)  rails3-mongoid-omniauth
          8)  rails3-subdomains
   railsapps  Enter your selection: 4
      recipe  Running setup recipe...
       setup  Your operating system is linux-gnu.
       setup  You are using Ruby version 1.9.3.
       setup  You are using Rails version 3.2.9.
    question  Web server for development?
          1)  WEBrick (default)
          2)  Thin
          3)  Unicorn
          4)  Puma
       setup  Enter your selection: 1
    question  Web server for production?
          1)  Same as development
          2)  Thin
          3)  Unicorn
          4)  Puma
       setup  Enter your selection: 1
    question  Template engine?
          1)  ERB
          2)  Haml
          3)  Slim (experimental)
       setup  Enter your selection: 2
      create    README
      append    README
      recipe  Running readme recipe...
      recipe  Running gems recipe...
     gemfile    haml (>= 3.1.7)
     gemfile    haml-rails (>= 0.3.5)
     gemfile    hpricot (>= 0.8.6)
     gemfile    ruby_parser (>= 3.0.1)
     gemfile    rspec-rails (>= 2.11.4)
     gemfile    database_cleaner (>= 0.9.1)
     gemfile    email_spec (>= 1.4.0)
     gemfile    cucumber-rails (>= 1.3.0)
     gemfile    launchy (>= 2.1.2)
     gemfile    capybara (>= 1.1.3)
     gemfile    factory_girl_rails (>= 4.1.0)
     gemfile    bootstrap-sass (>= 2.1.1.0)
     gemfile    devise (>= 2.1.2)
     gemfile    cancan (>= 1.6.8)
     gemfile    rolify (>= 3.2.0)
     gemfile    simple_form (>= 2.0.4)
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: Gemfile" from "."
      recipe  Running testing recipe...
      recipe  Running email recipe...
      recipe  Running models recipe...
      recipe  Running controllers recipe...
      recipe  Running views recipe...
      recipe  Running routes recipe...
      recipe  Running frontend recipe...
      recipe  Running init recipe...
      recipe  Running prelaunch recipe...
      recipe  Running prelaunch recipe...
      recipe  Running extras recipe...
      extras  Set a robots.txt file to ban spiders? (y/n) n
      extras  Create a project-specific rvm gemset and .rvmrc? (y/n) y
      extras  Create a GitHub repository? (y/n) n
      extras  recipe setting quiet_assets for reduced asset pipeline logging
     gemfile    quiet_assets (>= 1.0.1)
      extras  Add 'therubyracer' JavaScript runtime (for Linux users without node.js)? (y/n) n
      extras  recipe creating project-specific rvm gemset and .rvmrc
      extras  creating RVM gemset 'myapp'
         run    rvm rvmrc trust from "."
Marked /home/cthulhu/projects/myapp/.rvmrc as trusted - failed
      extras  switching to gemset 'myapp'
         run    rvm gemset list from "."

gemsets for ruby-1.9.3-p327 (found in /home/cthulhu/.rvm/gems/ruby-1.9.3-p327)
   (default)
   global
=> myapp

      remove    .rvmrc
      create    .rvmrc
        gsub    .rvmrc
    composer  Installing gems. This will take a while.
         run    bundle install --without production from "."
Using rake (10.0.2) 
Using i18n (0.6.1) 
Using multi_json (1.4.0) 
Using activesupport (3.2.9) 
Using builder (3.0.4) 
Using activemodel (3.2.9) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.2.2) 
Using actionpack (3.2.9) 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.4.4) 
Using actionmailer (3.2.9) 
Using arel (3.0.2) 
Using tzinfo (0.3.35) 
Using activerecord (3.2.9) 
Using activeresource (3.2.9) 
Using addressable (2.3.2) 
Using bcrypt-ruby (3.0.1) 
Using sass (3.2.3) 
Using bootstrap-sass (2.2.1.1) 
Using bundler (1.2.2) 
Using cancan (1.6.8) 
Using nokogiri (1.5.5) 
Using ffi (1.2.0) 
Using childprocess (0.3.6) 
Using websocket (1.0.4) 
Using libwebsocket (0.1.7.1) 
Using rubyzip (0.9.9) 
Using selenium-webdriver (2.26.0) 
Using xpath (1.0.0) 
Using capybara (2.0.1) 
Using coffee-script-source (1.4.0) 
Using execjs (1.4.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Using json (1.7.5) 
Using rdoc (3.12) 
Using thor (0.16.0) 
Using railties (3.2.9) 
Using coffee-rails (3.2.2) 
Using diff-lcs (1.1.3) 
Using gherkin (2.11.5) 
Using cucumber (1.2.1) 
Using cucumber-rails (1.3.0) 
Using database_cleaner (0.9.1) 
Using orm_adapter (0.4.0) 
Using warden (1.2.1) 
Using devise (2.1.2) 
Using launchy (2.1.2) 
Using email_spec (1.4.0) 
Using factory_girl (4.1.0) 
Using factory_girl_rails (4.1.0) 
Using haml (3.1.7) 
Using haml-rails (0.3.5) 
Using hpricot (0.8.6) 
Using jquery-rails (2.1.4) 
Using quiet_assets (1.0.1) 
Using rails (3.2.9) 
Using rolify (3.2.0) 
Using rspec-core (2.12.1) 
Using rspec-expectations (2.12.0) 
Using rspec-mocks (2.12.0) 
Using rspec-rails (2.12.0) 
Using sexp_processor (4.1.2) 
Using ruby_parser (3.0.4) 
Using sass-rails (3.2.5) 
Using simple_form (2.0.4) 
Using sqlite3 (1.3.6) 
Using uglifier (1.3.0) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
    composer  Running 'after bundler' callbacks.
    composer  importing html2haml conversion tool
         run    bundle exec rake db:create:all from "."
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: create database" from "."
        gems  recipe installing simple_form for use with Twitter Bootstrap
    generate    simple_form:install --bootstrap
      create  config/initializers/simple_form.rb
      create  config/initializers/simple_form_bootstrap.rb
       exist  config/locales
      create  config/locales/simple_form.en.yml
      create  lib/templates/haml/scaffold/_form.html.haml
===============================================================================

  Be sure to have a copy of the Bootstrap stylesheet available on your
  application, you can get it on http://twitter.github.com/bootstrap.

  Inside your views, use the 'simple_form_for' with one of the Bootstrap form
  classes, '.form-horizontal', '.form-inline', '.form-search' or
  '.form-vertical', as the following:

    = simple_form_for(@user, :html => {:class => 'form-horizontal' }) do |form|

===============================================================================
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: generators" from "."
     testing  recipe running after 'bundle install'
     testing  recipe installing RSpec
    generate    rspec:install
      create  .rspec
      create  spec
      create  spec/spec_helper.rb
      remove    spec/spec_helper.rb
      create    spec/spec_helper.rb
    generate    email_spec:steps
      create  features/step_definitions/email_steps.rb
      insert    spec/spec_helper.rb
      insert    spec/spec_helper.rb
         run    rm -rf test/ from "."
      insert    config/application.rb
      create    spec/support/devise.rb
     testing  recipe installing Cucumber
    generate    cucumber:install --capybara --rspec
      create  config/cucumber.yml
      create  script/cucumber
       chmod  script/cucumber
       exist  features/step_definitions
      create  features/support
      create  features/support/env.rb
       exist  lib/tasks
      create  lib/tasks/cucumber.rake
        gsub  config/database.yml
        gsub  config/database.yml
       force  config/database.yml
        gsub    config/cucumber.yml
      create    features/support/email_spec.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: testing framework" from "."
       email  recipe running after 'bundle install'
        gsub    config/environments/development.rb
        gsub    config/environments/development.rb
      insert    config/environments/test.rb
        gsub    config/environments/production.rb
      insert    config/environments/development.rb
      insert    config/environments/production.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: set email accounts" from "."
      models  recipe running after 'bundle install'
        gsub    config/application.rb
    generate    devise:install
      create  config/initializers/devise.rb
      create  config/locales/devise.en.yml
===============================================================================

Some setup you must do manually if you haven't yet:

  1. Ensure you have defined default url options in your environments files. Here 
     is an example of default_url_options appropriate for a development environment 
     in config/environments/development.rb:

       config.action_mailer.default_url_options = { :host => 'localhost:3000' }

     In production, :host should be set to the actual host of your application.

  2. Ensure you have defined root_url to *something* in your config/routes.rb.
     For example:

       root :to => "home#index"

  3. Ensure you have flash messages in app/views/layouts/application.html.erb.
     For example:

       <p class="notice"><%= notice %></p>
       <p class="alert"><%= alert %></p>

  4. If you are deploying Rails 3.1 on Heroku, you may want to set:

       config.assets.initialize_on_precompile = false

     On config/application.rb forcing your application to not access the DB
     or load models when precompiling your assets.

===============================================================================
    generate    devise user
      invoke  active_record
      create    db/migrate/20121205123202_devise_create_users.rb
      create    app/models/user.rb
      invoke    rspec
      create      spec/models/user_spec.rb
      invoke      factory_girl
      create        spec/factories/users.rb
      insert    app/models/user.rb
       route  devise_for :users
    generate    migration AddNameToUsers name:string
      invoke  active_record
      create    db/migrate/20121205123207_add_name_to_users.rb
      remove    app/models/user.rb
      create    app/models/user.rb
        gsub    config/initializers/devise.rb
    generate    cancan:ability
      create  app/models/ability.rb
      remove    app/models/ability.rb
      create    app/models/ability.rb
      insert    app/models/user.rb
    generate    rolify:role Role User
      create  app/models/role.rb
      insert  app/models/user.rb
      create  config/initializers/rolify.rb
      create  db/migrate/20121205123217_rolify_create_roles.rb
===============================================================================

An initializer file has been created here: config/initializers/rolify.rb, you 
can change rolify settings to match your needs. 
Defaults values are commented out.

A Role class has been been created in app/models (with the name you gave as 
argument otherwise the default is role.rb), you can add your own business logic 
inside.

Inside your User class (or the name you gave as argument otherwise the default 
is user.rb), rolify method has been inserted to provide rolify methods.

Now, if you just have to run the migration using rake command:

   rake db:migrate

and you will be able to add the resourcify method inside all models you want 
scoped by a role.

===============================================================================         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: models" from "."
  controllers  recipe running after 'bundle install'
      insert    app/controllers/application_controller.rb
    generate    controller
      create  app/controllers/home_controller.rb
       route  get "home/index"
      invoke  haml
      create    app/views/home
      create    app/views/home/index.html.haml
      invoke  rspec
      create    spec/controllers/home_controller_spec.rb
      invoke  helper
      create    app/helpers/home_helper.rb
      invoke    rspec
      invoke  assets
      invoke    coffee
      create      app/assets/javascripts/home.js.coffee
      invoke    scss
      create      app/assets/stylesheets/home.css.scss
        gsub    app/controllers/home_controller.rb
      remove    app/controllers/users_controller.rb
      create    app/controllers/users_controller.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: controllers" from "."
       views  recipe running after 'bundle install'
      remove    app/views/devise/shared/_links.html.erb
      remove    app/views/devise/shared/_links.html.haml
      create    app/views/devise/shared/_links.html.haml
      remove    app/views/devise/registrations/edit.html.erb
      remove    app/views/devise/registrations/edit.html.haml
      create    app/views/devise/registrations/edit.html.haml
      remove    app/views/devise/registrations/new.html.erb
      remove    app/views/devise/registrations/new.html.haml
      create    app/views/devise/registrations/new.html.haml
      remove    app/views/devise/sessions/new.html.erb
      remove    app/views/devise/sessions/new.html.haml
      create    app/views/devise/sessions/new.html.haml
      remove    app/views/home/index.html.erb
      remove    app/views/home/index.html.haml
      create    app/views/home/index.html.haml
      remove    app/views/users/index.html.erb
      remove    app/views/users/index.html.haml
      create    app/views/users/index.html.haml
      remove    app/views/users/_user.html.erb
      remove    app/views/users/_user.html.haml
      create    app/views/users/_user.html.haml
      remove    app/views/users/show.html.erb
      remove    app/views/users/show.html.haml
      create    app/views/users/show.html.haml
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: views" from "."
      routes  recipe running after 'bundle install'
      remove    config/routes.rb
      create    config/routes.rb
        gsub    config/routes.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: routes" from "."
    frontend  recipe running after 'bundle install'
      remove    app/views/layouts/application.html.erb
      remove    app/views/layouts/application.html.haml
      create    app/views/layouts/application.html.haml
      remove    app/views/layouts/application.html.erb
      remove    app/views/layouts/application.html.haml
      create    app/views/layouts/application.html.haml
      remove    app/views/layouts/_messages.html.erb
      remove    app/views/layouts/_messages.html.haml
      create    app/views/layouts/_messages.html.haml
      remove    app/views/layouts/_messages.html.erb
      remove    app/views/layouts/_messages.html.haml
      create    app/views/layouts/_messages.html.haml
      remove    app/views/layouts/_navigation.html.erb
      remove    app/views/layouts/_navigation.html.haml
      create    app/views/layouts/_navigation.html.haml
      remove    app/views/layouts/_navigation.html.erb
      remove    app/views/layouts/_navigation.html.haml
      create    app/views/layouts/_navigation.html.haml
        gsub    app/views/layouts/application.html.haml
        gsub    app/views/layouts/_navigation.html.haml
      remove    app/assets/stylesheets/application.css.scss
      create    app/assets/stylesheets/application.css.scss
      remove    app/assets/stylesheets/application.css.scss
      create    app/assets/stylesheets/application.css.scss
      insert    app/assets/javascripts/application.js
      create    app/assets/stylesheets/bootstrap_and_overrides.css.scss
      remove    app/assets/stylesheets/application.css
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: front-end framework" from "."
    composer  Running 'after everything' callbacks.
      readme  recipe running after everything
      remove    README
      remove    README.rdoc
      remove    doc/README_FOR_APP
      remove    public/humans.txt
      create    public/humans.txt
      remove    README
      create    README
      remove    README.textile
      create    README.textile
        gsub    README
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README
        gsub    README
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
        gsub    README.textile
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: add README files" from "."
     testing  recipe running after everything
     testing  copying RSpec files from the rails3-bootstrap-devise-cancan examples
      remove    spec/factories/users.rb
      create    spec/factories/users.rb
      remove    spec/controllers/home_controller_spec.rb
      create    spec/controllers/home_controller_spec.rb
      remove    spec/controllers/users_controller_spec.rb
      create    spec/controllers/users_controller_spec.rb
      remove    spec/models/user_spec.rb
      create    spec/models/user_spec.rb
      remove    spec/views/home/index.html.erb_spec.rb
      remove    spec/views/home/index.html.haml_spec.rb
      remove    spec/views/users/show.html.erb_spec.rb
      remove    spec/views/users/show.html.haml_spec.rb
      remove    spec/helpers/home_helper_spec.rb
      remove    spec/helpers/users_helper_spec.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: rspec files" from "."
     testing  copying Cucumber scenarios from the rails3-bootstrap-devise-cancan examples
      remove    spec/controllers/home_controller_spec.rb
      create    spec/controllers/home_controller_spec.rb
      remove    features/users/sign_in.feature
      create    features/users/sign_in.feature
      remove    features/users/sign_out.feature
      create    features/users/sign_out.feature
      remove    features/users/sign_up.feature
      create    features/users/sign_up.feature
      remove    features/users/user_edit.feature
      create    features/users/user_edit.feature
      remove    features/users/user_show.feature
      create    features/users/user_show.feature
      remove    features/step_definitions/user_steps.rb
      create    features/step_definitions/user_steps.rb
      remove    features/support/paths.rb
      create    features/support/paths.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: cucumber files" from "."
        init  recipe running after everything
      append    db/seeds.rb
      append    db/seeds.rb
      append    db/seeds.rb
        init  applying migrations and seeding the database
         run    bundle exec rake db:migrate from "."
==  DeviseCreateUsers: migrating ==============================================
-- create_table(:users)
   -> 0.0055s
-- add_index(:users, :email, {:unique=>true})
   -> 0.0005s
-- add_index(:users, :reset_password_token, {:unique=>true})
   -> 0.0005s
==  DeviseCreateUsers: migrated (0.0066s) =====================================

==  AddNameToUsers: migrating =================================================
-- add_column(:users, :name, :string)
   -> 0.0013s
==  AddNameToUsers: migrated (0.0015s) ========================================

==  RolifyCreateRoles: migrating ==============================================
-- create_table(:roles)
   -> 0.0010s
-- create_table(:users_roles, {:id=>false})
   -> 0.0004s
-- add_index(:roles, :name)
   -> 0.0003s
-- add_index(:roles, [:name, :resource_type, :resource_id])
   -> 0.0004s
-- add_index(:users_roles, [:user_id, :role_id])
   -> 0.0003s
==  RolifyCreateRoles: migrated (0.0029s) =====================================

         run    bundle exec rake db:test:prepare from "."
         run    bundle exec rake db:seed from "."
CREATING ROLES
SETTING UP DEFAULT USER LOGIN
New user created: First User
New user created: Second User
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: set up database" from "."
      extras  recipe removing unnecessary files and whitespace
      remove    public/index.html
      remove    app/assets/images/rails.png
        gsub    Gemfile
        gsub    Gemfile
        gsub    config/routes.rb
        gsub    config/routes.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: extras" from "."
    composer  WOOT! The recipes you've selected are known to work together.
    composer  If they don't, open an issue for rails_apps_composer on GitHub.
    composer  WOOT! The preferences you've selected are known to work together.
    composer  If they don't, open an issue for rails_apps_composer on GitHub.
    composer  Finished running the rails_apps_composer app template.
    composer  Your new Rails app is ready. Time to run 'bundle install'.
         run  bundle install
Using rake (10.0.2) 
Using i18n (0.6.1) 
Using multi_json (1.4.0) 
Using activesupport (3.2.9) 
Using builder (3.0.4) 
Using activemodel (3.2.9) 
Using erubis (2.7.0) 
Using journey (1.0.4) 
Using rack (1.4.1) 
Using rack-cache (1.2) 
Using rack-test (0.6.2) 
Using hike (1.2.1) 
Using tilt (1.3.3) 
Using sprockets (2.2.2) 
Using actionpack (3.2.9) 
Using mime-types (1.19) 
Using polyglot (0.3.3) 
Using treetop (1.4.12) 
Using mail (2.4.4) 
Using actionmailer (3.2.9) 
Using arel (3.0.2) 
Using tzinfo (0.3.35) 
Using activerecord (3.2.9) 
Using activeresource (3.2.9) 
Using addressable (2.3.2) 
Using bcrypt-ruby (3.0.1) 
Using sass (3.2.3) 
Using bootstrap-sass (2.2.1.1) 
Using cancan (1.6.8) 
Using nokogiri (1.5.5) 
Using ffi (1.2.0) 
Using childprocess (0.3.6) 
Using websocket (1.0.4) 
Using libwebsocket (0.1.7.1) 
Using rubyzip (0.9.9) 
Using selenium-webdriver (2.26.0) 
Using xpath (1.0.0) 
Using capybara (2.0.1) 
Using coffee-script-source (1.4.0) 
Using execjs (1.4.0) 
Using coffee-script (2.2.0) 
Using rack-ssl (1.3.2) 
Using json (1.7.5) 
Using rdoc (3.12) 
Using thor (0.16.0) 
Using railties (3.2.9) 
Using coffee-rails (3.2.2) 
Using diff-lcs (1.1.3) 
Using gherkin (2.11.5) 
Using cucumber (1.2.1) 
Using cucumber-rails (1.3.0) 
Using database_cleaner (0.9.1) 
Using orm_adapter (0.4.0) 
Using warden (1.2.1) 
Using devise (2.1.2) 
Using launchy (2.1.2) 
Using email_spec (1.4.0) 
Using factory_girl (4.1.0) 
Using factory_girl_rails (4.1.0) 
Using haml (3.1.7) 
Using haml-rails (0.3.5) 
Using hpricot (0.8.6) 
Using jquery-rails (2.1.4) 
Using quiet_assets (1.0.1) 
Using bundler (1.2.2) 
Using rails (3.2.9) 
Using rolify (3.2.0) 
Using rspec-core (2.12.1) 
Using rspec-expectations (2.12.0) 
Using rspec-mocks (2.12.0) 
Using rspec-rails (2.12.0) 
Using sexp_processor (4.1.2) 
Using ruby_parser (3.0.4) 
Using sass-rails (3.2.5) 
Using simple_form (2.0.4) 
Using sqlite3 (1.3.6) 
Using uglifier (1.3.0) 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.

cthulhu@elitebook ~/projects $ head myapp/app/views/layouts/application.html.haml 
!!!
%html
  %head
    %meta{:content => "width=device-width, initial-scale=1.0", :name => "viewport"}
      %title= content_for?(:title) ? yield(:title) : "Myapp"
      %meta{:content => content_for?(:description) ? yield(:description) : "Myapp", :name => "description"}
        = stylesheet_link_tag "application", :media => "all"
        = javascript_include_tag "application"
        = csrf_meta_tags
        = yield(:head)

As you can see, there is wrong indendation below %meta tags. Output HTML is correct, but during functional tests:

../home/cthulhu/.rvm/gems/ruby-1.9.3-p327/gems/actionpack-3.2.9/lib/action_controller/vendor/html-scanner/html/document.rb:43:in `initialize' : ignoring attempt to close head with meta
  opened at byte 23, line 3
  closed at byte 327, line 11
  attributes at open: {}
  text around open: "OCTYPE html>\n<html>\n<head>\n<meta content"
  text around close: "script\"></script>\n\n\n</meta>\n</meta>\n</he" (StandardWarning)

Looks like an issue with html2haml, but i don't have time right now to take a closer look.

'rails new app' error: "template could not be loaded"

Hi!
I tried creating an app with the rails composer tool. So when I hit rails new myapp -m -T it creates the rails skeleton but then after it reaches the vendors it just says "The template [/Users/myname/path_to_code/template] could not be loaded. Error: Could not find [/Users/myname/path_to_code/template] in any of your source paths. Your current source paths are: /Users/myname/.rvm/gems/ruby-1.9.3-p327@global/gems/railties-3.2.8/lib/rails/generators/rails/app/templates". The app seems created but I'm not prompted with the questions if I want to use the different templates, frameworks etc. What could be wrong? I checked my openssl version although I dont know if that is related to this and it showed version 0.9.8r which is kinda "old". Any clues? Thanks!

//Regards

Ruby_parser error when Haml is selected

OS X 10.7.5
RVM 1.17.2
Ruby 1.9.3
Rails 3.2.9

Tried using composer to create project like:

rails new project_name -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb -T

Choices:
question Install an example application?
2) rails-stripe-membership-saas
railsapps Enter your selection: 2
setup Your operating system is darwin11.4.2.
setup You are using Ruby version 1.9.3.
setup You are using Rails version 3.2.9.
question Web server for development?
1) WEBrick (default)
setup Enter your selection: 1
question Web server for production?
1) Same as development
setup Enter your selection: 1
question Template engine?
2) Haml
setup Enter your selection: 2
extras Set a robots.txt file to ban spiders? (y/n) n
extras Create a project-specific rvm gemset and .rvmrc? (y/n) n
extras Create a GitHub repository? (y/n) n

Got this:
/Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/ruby_parser-3.1.0/lib/ruby_parser_extras.rb:117:in syntax_error': Odd number (2) list for Hash. s(:array, s(:call, nil, :add_month_numbers)) (RubyParser::SyntaxError) from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/ruby_parser-3.1.0/lib/ruby18_parser.rb:5667:in_reduce_492'
from (eval):3:in _racc_do_parse_c' from (eval):3:indo_parse'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/ruby_parser-3.1.0/lib/ruby_parser_extras.rb:981:in block in process' from /Users/jeremybarth/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/1.9.1/timeout.rb:68:intimeout'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/ruby_parser-3.1.0/lib/ruby_parser_extras.rb:971:in process' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/ruby_parser-3.1.0/lib/ruby_parser_extras.rb:1292:inrescue in process'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/ruby_parser-3.1.0/lib/ruby_parser_extras.rb:1290:in process' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/haml-3.1.7/lib/haml/html/erb.rb:101:invalid_ruby?'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/haml-3.1.7/lib/haml/html/erb.rb:114:in block_opener?' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/haml-3.1.7/lib/haml/html/erb.rb:77:inadd_expr_literal'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/erubis-2.7.0/lib/erubis/converter.rb:179:in add_expr' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/erubis-2.7.0/lib/erubis/converter.rb:146:inblock in convert_input'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/erubis-2.7.0/lib/erubis/converter.rb:132:in scan' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/erubis-2.7.0/lib/erubis/converter.rb:132:inconvert_input'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/erubis-2.7.0/lib/erubis/converter.rb:36:in convert' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/erubis-2.7.0/lib/erubis/engine.rb:30:ininitialize'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/haml-3.1.7/lib/haml/html/erb.rb:28:in new' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/haml-3.1.7/lib/haml/html/erb.rb:28:incompile'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/haml-3.1.7/lib/haml/html.rb:135:in initialize' from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:134:innew'
from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:134:in html_to_haml' from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:121:incopy_from_repo'
from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1840:in block in apply' from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2079:incall'
from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2079:in block in apply' from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2079:ineach'
from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2079:in apply' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/actions.rb:221:ininstance_eval'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/actions.rb:221:in apply' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/generators/app_base.rb:109:inapply_rails_template'
from (eval):1:in apply_rails_template' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/task.rb:27:inrun'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/invocation.rb:120:in invoke_task' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/invocation.rb:126:inblock in invoke_all'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/invocation.rb:126:in each' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/invocation.rb:126:inmap'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/invocation.rb:126:in invoke_all' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/group.rb:238:indispatch'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/thor-0.16.0/lib/thor/base.rb:425:in start' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/commands/application.rb:38:in<top (required)>'
from /Users/jeremybarth/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /Users/jeremybarth/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/lib/rails/cli.rb:15:in <top (required)>' from /Users/jeremybarth/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:inrequire'
from /Users/jeremybarth/.rvm/rubies/ruby-1.9.3-p327/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in require' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/gems/railties-3.2.9/bin/rails:7:in<top (required)>'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/bin/rails:19:in load' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/bin/rails:19:in

'
from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in eval' from /Users/jeremybarth/.rvm/gems/ruby-1.9.3-p327/bin/ruby_noexec_wrapper:14:in'

Deploying to Heroku with SQLite

After installing on Ubuntu with sqlite3 and trying to deploy sample app to heroku, heroku says:

 !     Failed to install gems via Bundler.
 !     
 !     Detected sqlite3 gem which is not supported on Heroku.
 !     http://devcenter.heroku.com/articles/how-do-i-use-sqlite3-for-development
 !
 !     Heroku push rejected, failed to compile Ruby/rails app

The link says to use postgres, but postgres installation on ubuntu is turning out to be a huge mess. Not sure if this qualifies as a composer issue but figured I'd report, as out of the box you can't deploy to heroku.

Fails with ruby_parser missing dependency "sexp" gem

Having a problem with composer gets to rspec:install - it chucks this error:

cannot load such file -- sexp (LoadError)

Stacktrace:

generate    rspec:install
/home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.2/lib/ruby_parser_extras.rb:5:in `require': cannot load such file -- sexp (LoadError)
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.2/lib/ruby_parser_extras.rb:5:in `<top (required)>'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.2/lib/ruby18_parser.rb:12:in `require'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.2/lib/ruby18_parser.rb:12:in `<class:Ruby18Parser>'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.2/lib/ruby18_parser.rb:8:in `<top (required)>'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.2/lib/ruby_parser.rb:2:in `require'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/ruby_parser-3.0.2/lib/ruby_parser.rb:2:in `<top (required)>'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `require'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `each'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/runtime.rb:66:in `block in require'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `each'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler/runtime.rb:55:in `require'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/bundler-1.2.2/lib/bundler.rb:128:in `require'
    from /home/vagrant/code/redisstatus/config/application.rb:7:in `<top (required)>'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:24:in `require'
    from /home/vagrant/.rbenv/versions/1.9.3-p327/lib/ruby/gems/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:24:in `<top (required)>'
    from script/rails:6:in `require'
    from script/rails:6:in `<main>'

Related post on ruby_parser:

seattlerb/ruby_parser#88

rescue_from needs handler - using core recipe via template

I created a template file using just the core recipe (using rails_apps_composer-2.2):
$ rails_apps_composer template lib/templates/rails-apps-core.txt -r core

then, ran:

$rails new TestApp -m lib/templates/rails-apps-core.txt

everything was fine until the controllers started being generated:

[snip]
controllers recipe running after 'bundle install'
insert app/controllers/application_controller.rb
generate controller
/usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/rescuable.rb:58:in rescue_from': Need a handler. Supply an options ha sh that has a :with key as the last argument. (ArgumentError) from /home/fisalgom/work/TestApp/app/controllers/application_controller.rb:2:inclass:ApplicationController'
from /home/fisalgom/work/TestApp/app/controllers/application_controller.rb:1:in <top (required)>' from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:469:inload'
from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:469:in block in load_file' from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:639:innew_constants_in'
from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:468:in load_file' from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:353:inrequire_or_load'
from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:502:in load_missing_constant' from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:192:inblock in const_missing'
from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:190:in each' from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:190:inconst_missing'
from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:230:in block in constantize' from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:229:ineach'
from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/inflector/methods.rb:229:in constantize' from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/activesupport-3.2.8/lib/active_support/core_ext/string/inflections.rb:54:inconstantize'
from /usr/local/rvm/gems/ruby-1.9.3-p194@rails_apps_composer-2.2/gems/devise-2.1.2/app/controllers/devise_controller.rb:2:in `<top (required)>'

When I try to create a project specific gemset - the composer throws an error

This is the error message I get:

  extras  recipe creating project-specific rvm gemset and .rvmrc
  extras  creating RVM gemset 'my_app'
  run    rvm rvmrc trust from "."
  Marked /my_app/Gemfile as trusted
  extras  switching to gemset 'my_app'
  https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1657:in `rescue in apply': rvm failure: unable to use gemset my_app (RuntimeError)
  from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1654:in `apply'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/actions.rb:221:in `instance_eval'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/actions.rb:221:in `apply'  
  from /.rvm/gems/ruby-1.9.2-p0/gems/railties-3.2.8/lib/rails/generators/app_base.rb:109:in `apply_rails_template'
  from (eval):1:in `apply_rails_template'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/task.rb:27:in `run'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/invocation.rb:120:in `invoke_task'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `block in invoke_all'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `each'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `map'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/invocation.rb:126:in `invoke_all'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/group.rb:238:in `dispatch'
  from /.rvm/gems/ruby-1.9.2-p0/gems/thor-0.15.4/lib/thor/base.rb:425:in `start'
  from /.rvm/gems/ruby-1.9.2-p0/gems/railties-3.2.8/lib/rails/commands/application.rb:38:in `<top (required)>'
  from /.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  from /.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  from /.rvm/gems/ruby-1.9.2-p0/gems/railties-3.2.8/lib/rails/cli.rb:15:in `<top (required)>'
  from /.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  from /.rvm/rubies/ruby-1.9.2-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in `require'
  from /.rvm/gems/ruby-1.9.2-p0/gems/railties-3.2.8/bin/rails:7:in `<top (required)>'
  from /.rvm/gems/ruby-1.9.2-p0/bin/rails:23:in `load'
  from /.rvm/gems/ruby-1.9.2-p0/bin/rails:23:in `<main>'

Any ideas on why that is the case?

Given that I have multiple Rails projects, I would love to be able to use that option.

Thanks!

Capybyra expectations are off for sign-up with devise

The page.should function appears to strip all tags and whitespace. This means that the in-line errors run together, at least for me. My views/devise/registrations/new.html.erb doesn't really have any html in it, so this is just what simple_form is generating.

For example, I had to change:

Then /^I should see a missing password message$/ do
  page.should have_content "Password can't be blank"
end

to

Then /^I should see a missing password message$/ do
  page.should have_content "Passwordcan't be blank"
end

I had to do the same for email.

Below is what I chose:

Recipes:
[“controllers”, “core”, “email”, “extras”, “frontend”, “gems”, “git”, “init”, “models”, “prelaunch”, “railsapps”, “readme”, “routes”, “saas”, “setup”, “testing”, “views”]
Preferences:
{:git=>true, :railsapps=>“none”, :dev_webserver=>“webrick”, :prod_webserver=>“puma”, :database=>“mongodb”, :orm=>“mongoid”, :templates=>“erb”, :unit_test=>“rspec”, :integration=>“cucumber”, :fixtures=>“factory_girl”, :frontend=>“bootstrap”, :bootstrap=>“sass”, :email=>“mandrill”, :authentication=>“devise”, :devise_modules=>“default”, :authorization=>“cancan”, :form_builder=>“simple_form”, :starter_app=>“admin_app”, :quiet_assets=>true, :ban_spiders=>true, :rvmrc=>true}

Error while customizing app (missing Controller home_controller.rb)

~/.rvm/gems/ruby-1.9.3-p194@worldabroad/gems/omniauth-1.1.1/lib/omniauth/builder.rb:39:in rescue in provider': Could not find matching strategy for :twitter. You may need to install an additional gem (such as omniauth-twitter). (LoadError) from ~/.rvm/gems/ruby-1.9.3-p194@worldabroad/gems/omniauth-1.1.1/lib/omniauth/builder.rb:36:inprovider'
...
...

I'm using Facebook strategy instead of Twitter, but it seems like it's still using Twitter.

Choosing machinist and getting FactoryGirl specs

From my README:

Recipes:
["auth", "controllers", "core", "email", "extras", "frontend", "gems", "git", "init", "models", "railsapps", "readme", "routes", "setup", "testing", "views"]

Preferences:
{:railsapps=>"none", :database=>"sqlite", :templates=>"haml", :unit_test=>"rspec", :integration=>"cucumber", :fixtures=>"machinist", :frontend=>"bootstrap", :bootstrap=>"sass", :email=>"mandrill", :authentication=>"devise", :devise_modules=>"default", :authorization=>"cancan", :starter_app=>"admin_app", :form_builder=>"simple_form"}

Running rake spec produces:

ruby -S rspec ./spec/controllers/home_controller_spec.rb ./spec/controllers/users_controller_spec.rb ./spec/models/user_spec.rb
..............FF

Failures:

  1) UsersController GET 'show' should be successful
     Failure/Error: @user = FactoryGirl.create(:user)
     NameError:
       uninitialized constant FactoryGirl
     # ./spec/controllers/users_controller_spec.rb:6:in `block (2 levels) in <top (required)>'

  2) UsersController GET 'show' should find the right user
     Failure/Error: @user = FactoryGirl.create(:user)
     NameError:
       uninitialized constant FactoryGirl
     # ./spec/controllers/users_controller_spec.rb:6:in `block (2 levels) in <top (required)>'

Finished in 0.25555 seconds
16 examples, 2 failures

Failed examples:

rspec ./spec/controllers/users_controller_spec.rb:12 # UsersController GET 'show' should be successful
rspec ./spec/controllers/users_controller_spec.rb:17 # UsersController GET 'show' should find the right user

Randomized with seed 23130

rake aborted!

I guess inclusion of machinist is not expected yet?

hard crash when rvm gem not available and attempting to create rvm gemset and .rvmrc

Just got this crash. I'll fork the repo and try to work around it (not raise an exception - just log the issue and move on). Note that I have the rvm application installed but the gem is not currently available.

  ...
  extras  Create a project-specific rvm gemset and .rvmrc? (y/n) y
  extras  Create a GitHub repository? (y/n) y
  extras  recipe banning spiders by modifying 'public/robots.txt'
  extras  recipe creating project-specific rvm gemset and .rvmrc

https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1663:in rescue in apply': RVM gem is currently unavailable. (RuntimeError) from https://raw.github.com/RailsApps/rails-composer/master/composer.rb:1657:inapply'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/actions.rb:217:in instance_eval' from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/actions.rb:217:inapply'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/railties-3.2.8/lib/rails/generators/app_base.rb:109:in apply_rails_template' from (eval):1:inapply_rails_template'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/task.rb:22:in run' from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/invocation.rb:118:ininvoke_task'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/invocation.rb:124:in block in invoke_all' from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/invocation.rb:124:ineach'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/invocation.rb:124:in map' from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/invocation.rb:124:ininvoke_all'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/group.rb:226:in dispatch' from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/thor-0.14.6/lib/thor/base.rb:389:instart'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/railties-3.2.8/lib/rails/commands/application.rb:38:in <top (required)>' from /Users/jbaylor/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:inrequire'
from /Users/jbaylor/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in require' from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/railties-3.2.8/lib/rails/cli.rb:15:in<top (required)>'
from /Users/jbaylor/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:in require' from /Users/jbaylor/.rvm/rubies/ruby-1.9.2-p290/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:54:inrequire'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/gems/railties-3.2.8/bin/rails:7:in <top (required)>' from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/bin/rails:19:inload'
from /Users/jbaylor/.rvm/gems/ruby-1.9.2-p290@jbaylor_personal/bin/rails:19:in `

'

email_spec is missing in Gemfile (for rspec)

mc@mc-selleo-204:~/projects/same_project_name/spn$ rspec
/home/mc/.rvm/gems/ruby-1.9.3-p194@spn/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:251:in `require': cannot load such file -- email_spec (LoadError)

solution

group :test do
  gem "capybara", ">= 1.1.2"
  gem "email_spec"
end

composer.rb could not be loaded. Error: cannot load such file -- bundler/setup

composer Running 'after bundler' callbacks.
The template [https://raw.github.com/RailsApps/rails-composer/master/composer.rb] could not be loaded. Error: cannot load such file -- bundler/setup

Can some one help me with this? However the same issue has been reported and the issue is closed now, but the solutions that were given in that issue is not working for me.
below is the result of gem list

*** LOCAL GEMS ***

actionmailer (3.2.8)
actionpack (3.2.8)
activemodel (3.2.8)
activerecord (3.2.8)
activeresource (3.2.8)
activesupport (3.2.8)
addressable (2.3.2)
arel (3.0.2)
bcrypt-ruby (3.0.1)
bootstrap-sass (2.1.1.0)
builder (3.0.4)
bundler (1.2.1)
cancan (1.6.8)
capybara (1.1.3)
childprocess (0.3.6)
coffee-rails (3.2.2)
coffee-script (2.2.0)
coffee-script-source (1.4.0)
cucumber (1.2.1)
cucumber-rails (1.3.0)
database_cleaner (0.9.1)
devise (2.1.2)
diff-lcs (1.1.3)
email_spec (1.4.0)
erubis (2.7.0)
execjs (1.4.0)
factory_girl (4.1.0)
factory_girl_rails (4.1.0)
ffi (1.1.5)
gherkin (2.11.5)
google_visualr (2.1.5)
hike (1.2.1)
hominid (3.0.5)
i18n (0.6.1)
journey (1.0.4)
jquery-datatables-rails (1.11.1)
jquery-rails (2.1.3)
json (1.7.5)
launchy (2.1.2)
libv8 (3.3.10.4 x86-linux)
libwebsocket (0.1.5)
mail (2.4.4)
mime-types (1.19)
multi_json (1.3.7)
nokogiri (1.5.5)
orm_adapter (0.4.0)
polyglot (0.3.3)
quiet_assets (1.0.1)
rack (1.4.1)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.2)
rails (3.2.8)
railties (3.2.8)
rake (0.9.2.2)
rdoc (3.12)
rolify (3.2.0)
rspec (2.11.0)
rspec-core (2.11.1)
rspec-expectations (2.11.3)
rspec-mocks (2.11.3)
rspec-rails (2.11.4)
rubygems-bundler (1.1.0)
rubyzip (0.9.9)
rvm (1.11.3.5)
sass (3.2.2)
sass-rails (3.2.5)
selenium-webdriver (2.26.0)
simple_form (2.0.4)
sprockets (2.1.3)
sqlite3 (1.3.6)
therubyracer (0.10.2)
thor (0.16.0)
tilt (1.3.3)
treetop (1.4.12)
tzinfo (0.3.34)
uglifier (1.3.0)
warden (1.2.1)
xpath (0.1.4)


ruby 1.9.3p286 (2012-10-12 revision 37165) [i686-linux]
rake, version 0.9.2.2
Rails 3.2.8

Error: Cannot load such file - bundler/setup

The template [https://raw.github.com/RailsApps/rails-composer/master/composer.rb] could not be loaded. Error: cannot load such file -- bundler/setup

I had already selected the extras and it was bundle installing, then I came across this error. I would like to see what is necessary to fix this, as I love the idea of it.

(same as Issue #36)

This appears to happen when converting html to haml:

views  recipe running after 'bundle install'
      remove    app/views/devise/shared/_links.html.erb
      remove    app/views/devise/shared/_links.html.haml
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "resource_class" (tIDENTIFIER)
# ERROR: (string):2 :: parse error on value "resource_class" (tIDENTIFIER)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
      create    app/views/devise/shared/_links.html.haml
      remove    app/views/devise/registrations/edit.html.erb
      remove    app/views/devise/registrations/edit.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
      create    app/views/devise/registrations/edit.html.haml
      remove    app/views/devise/registrations/new.html.erb
      remove    app/views/devise/registrations/new.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
      create    app/views/devise/registrations/new.html.haml
      remove    app/views/devise/sessions/new.html.erb
      remove    app/views/devise/sessions/new.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
      create    app/views/devise/sessions/new.html.haml
      remove    app/views/home/index.html.erb
      remove    app/views/home/index.html.haml
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "@users" (tIVAR)
# ERROR: (string):2 :: parse error on value "@users" (tIVAR)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
      create    app/views/home/index.html.haml
      remove    app/views/users/index.html.erb
      remove    app/views/users/index.html.haml
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "@users" (tIVAR)
# ERROR: (string):2 :: parse error on value "@users" (tIVAR)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
      create    app/views/users/index.html.haml
      remove    app/views/users/_user.html.erb
      remove    app/views/users/_user.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
      create    app/views/users/_user.html.haml
      remove    app/views/users/show.html.erb
      remove    app/views/users/show.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
      create    app/views/users/show.html.haml
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: views" from "."
      routes  recipe running after 'bundle install'
      remove    config/routes.rb
      create    config/routes.rb
        gsub    config/routes.rb
         run    git add -A from "."
         run    git commit -qm "rails_apps_composer: routes" from "."
    frontend  recipe running after 'bundle install'
      remove    app/views/layouts/application.html.erb
      remove    app/views/layouts/application.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
      create    app/views/layouts/application.html.haml
      remove    app/views/layouts/application.html.erb
      remove    app/views/layouts/application.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
      create    app/views/layouts/application.html.haml
      remove    app/views/layouts/_messages.html.erb
      remove    app/views/layouts/_messages.html.haml
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "flash" (tIDENTIFIER)
# ERROR: (string):2 :: parse error on value "flash" (tIDENTIFIER)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
      create    app/views/layouts/_messages.html.haml
      remove    app/views/layouts/_messages.html.erb
      remove    app/views/layouts/_messages.html.haml
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "flash" (tIDENTIFIER)
# ERROR: (string):2 :: parse error on value "flash" (tIDENTIFIER)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):3 :: parse error on value ["end", 3] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
      create    app/views/layouts/_messages.html.haml
      remove    app/views/layouts/_navigation.html.erb
      remove    app/views/layouts/_navigation.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
      create    app/views/layouts/_navigation.html.haml
      remove    app/views/layouts/_navigation.html.erb
      remove    app/views/layouts/_navigation.html.haml
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):4 :: parse error on value "$end" ($end)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["if", 2] (kIF)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):3 :: parse error on value "$end" ($end)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):1 :: parse error on value ["else", 1] (kELSE)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):2 :: parse error on value ["when", 2] (kWHEN)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):1 :: parse error on value ["end", 1] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):4 :: parse error on value ["end", 4] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)
# ERROR: (string):2 :: parse error on value ["end", 2] (kEND)

Mongoid + Devise fails rspec tests

Generating an application with Mongoid and Devise results in the newly-generated app failing its tests. This is due to the following validation in the User model:

validates_format_of :name, with: /^[a-z0-9_]+$/, message: 'must be lowercase alphanumerics only'

The following small change will make the tests pass:

diff --git a/spec/factories/users.rb b/spec/factories/users.rb
index 30cd9aa..412f8da 100644
--- a/spec/factories/users.rb
+++ b/spec/factories/users.rb
@@ -2,7 +2,7 @@

 FactoryGirl.define do
   factory :user do
-    name 'Test User'
+    name 'testuser'
     email '[email protected]'
     password 'please'
     password_confirmation 'please'
diff --git a/spec/models/user_spec.rb b/spec/models/user_spec.rb
index 4c96cdd..ee560e2 100644
--- a/spec/models/user_spec.rb
+++ b/spec/models/user_spec.rb
@@ -4,7 +4,7 @@ describe User do

   before(:each) do
     @attr = { 
-      :name => "Example User",
+      :name => "exampleuser",
       :email => "[email protected]",
       :password => "foobar",
       :password_confirmation => "foobar"

I am not sure if the validation is actually correct, but I need to work with the app a bit more to determine that.

Composer cannot be loaded because of multi_json version conflict

I was wondering if anyone can help with this one - I can't load composer because I have already activated the wrong version of multi_json - see note below. Any help very much appreciated.

composer Installing gems. This will take a while.
run bundle install --without production from "."
....> Your bundle is complete! It was installed into ./vendor/bundle

********************************************** composer Running 'after bundler' callbacks.
The template [https://raw.github.com/RailsApps/rails-composer/master/composer.rb] could not be loaded. Error: You have already activated multi_json 1.3.6, but your Gemfile requires multi_json 1.3.7. Using bundle exec may solve this.

ruby 1.9.3p286 (2012-10-12 revision 37165) [x86_64-darwin11.4.2]
Rails 3.2.8

Error messages when Haml is selected

When Haml is selected, the application template appears to fail with the attempt to convert an ERB file to a Haml file. The html2haml gem depends on the ruby_parser gem and a new release of the ruby_parser gem was out yesterday. Need to test further but this may be the source of the apparent failure.

Fails with "Certificate Verify Failed"

Hi Daniel, can you help me? @DanielKehoe
i try to create an app but i can't get the rails composer run.
This is what i get from my terminal:

myusername$ rails new rails_composer -m https://raw.github.com/RailsApps/rails-composer/master/composer.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
...
create vendor/plugins
create vendor/plugins/.gitkeep
apply https://raw.github.com/RailsApps/rails-composer/master/composer.rb
/Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799:in connect': SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (OpenSSL::SSL::SSLError) from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799:inblock in connect'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:54:in timeout' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/timeout.rb:99:intimeout'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:799:in connect' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:755:indo_start'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/net/http.rb:744:in start' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:306:inopen_http'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:775:in buffer_open' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:203:inblock in open_loop'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:201:in catch' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:201:inopen_loop'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:146:in open_uri' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:677:inopen'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/1.9.1/open-uri.rb:33:in open' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/actions.rb:216:inapply'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/generators/app_base.rb:109:in apply_rails_template' from (eval):1:inapply_rails_template'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/task.rb:27:in run' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:120:ininvoke_task'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:in block in invoke_all' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:ineach'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:in map' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/invocation.rb:126:ininvoke_all'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/group.rb:238:in dispatch' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/thor-0.16.0/lib/thor/base.rb:425:instart'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/commands/application.rb:38:in <top (required)>' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/lib/rails/cli.rb:15:in<top (required)>'
from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' from /Users/myusername/.rvm/rubies/ruby-1.9.3-p194/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.8/bin/rails:7:in <top (required)>' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/bin/rails:19:inload'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/bin/rails:19:in <main>' from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:ineval'
from /Users/myusername/.rvm/gems/ruby-1.9.3-p194/bin/ruby_noexec_wrapper:14:in `

'

Session controller breaks with OmniAuth to GitHub

When GitHub triggers the callback:

ActiveRecord::StatementInvalid in SessionsController#create

PG::Error: ERROR:  operator does not exist: character varying = integer
LINE 1: ...E "users"."provider" = 'github' AND "users"."uid" = 65950 LI...
                                                             ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.
: SELECT  "users".* FROM "users"  WHERE "users"."provider" = 'github' AND "users"."uid" = 65950 LIMIT 1

In sessions#create

    user = User.where(:provider => auth['provider'], 
                      :uid => auth['uid']).first || User.create_with_omniauth(auth)

should be:

    user = User.where(:provider => auth['provider'], 
                      :uid => auth['uid'].to_s).first || User.create_with_omniauth(auth)

The UID column is a String.

Error while installing therubyracer (0.11.0)

Gem files will remain installed in /home/kevin/.bundler/tmp/7423/gems/therubyracer-0.11.0 for inspection.
Results logged to /home/kevin/.bundler/tmp/7423/gems/therubyracer-0.11.0/ext/v8/gem_make.out
An error occurred while installing therubyracer (0.11.0), and Bundler cannot continue.
Make sure that gem install therubyracer -v '0.11.0' succeeds before bundling.
composer Running 'after bundler' callbacks.
Could not find gem 'therubyracer (>= 0.11.0) ruby' in the gems available on this machine.

Routing Error on devise controller

App built with Devise + twitter bootstrap :

Logged in as role admin:

When updating the user role :
Routing Error
No route matches [PUT] "/users/4"

When deleting a user :
Routing Error
No route matches [DELETE] "/users/4"

How do i create these routes?

Fails when installing gems

Hello.

I have both MacOSX and Ubuntu boxes and I get the same error when going through the "I want to build my own application" wizard. This is the error:

  recipe  Running testing recipe...
  recipe  Running email recipe...
  recipe  Running models recipe...
  recipe  Running controllers recipe...
  recipe  Running views recipe...
  recipe  Running routes recipe...
  recipe  Running frontend recipe...
  recipe  Running init recipe...
  recipe  Running prelaunch recipe...
  recipe  Running prelaunch recipe...
  recipe  Running extras recipe...
  extras  Reduce assets logger noise during development? (y/n) y
  extras  Set a robots.txt file to ban spiders? (y/n) y
  extras  Create a project-specific rvm gemset and .rvmrc? (y/n) n
  extras  Create a GitHub repository? (y/n) n
  extras  recipe setting quiet_assets for reduced asset pipeline logging
 gemfile    quiet_assets (>= 1.0.1)
  extras  recipe banning spiders by modifying 'public/robots.txt'
composer  Installing gems. This will take a while.

https://raw.github.com/RailsApps/rails-composer/master/composer.rb:2033:in apply': uninitialized constant Rails::Generators::AppGenerator::Bundler (NameError) from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/actions.rb:221:ininstance_eval'
from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/actions.rb:221:in apply' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/railties-3.2.8/lib/rails/generators/app_base.rb:109:inapply_rails_template'
from (eval):1:in apply_rails_template' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/task.rb:27:inrun'
from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/invocation.rb:120:in invoke_task' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/invocation.rb:126:inblock in invoke_all'
from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/invocation.rb:126:in each' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/invocation.rb:126:inmap'
from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/invocation.rb:126:in invoke_all' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/group.rb:238:indispatch'
from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/thor-0.16.0/lib/thor/base.rb:425:in start' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/railties-3.2.8/lib/rails/commands/application.rb:38:in<top (required)>'
from /Users/gugguson/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' from /Users/gugguson/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire'
from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/railties-3.2.8/lib/rails/cli.rb:15:in <top (required)>' from /Users/gugguson/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:inrequire'
from /Users/gugguson/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:55:in require' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/gems/rails-3.1.3/bin/rails:7:in<top (required)>'
from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/bin/rails:19:in load' from /Users/gugguson/.rvm/gems/ruby-1.9.3-p0@rails32/bin/rails:19:in

'

Any idea whan can be causing this?

mongoid syntax errors in features/step_definitions/user_steps.rb

The devise cucumber/Rspec tests use a (old?) invalid way of accessing objects with mongoid.

in find_user and delete_user, changing the @user= line to read:

User.where(email: @visitor[:email]).first

fixes the problem. (I also made delete_user do @user ||= find_user instead of repeating the same line)

Below is what I chose:

Recipes:
[“controllers”, “core”, “email”, “extras”, “frontend”, “gems”, “git”, “init”, “models”, “prelaunch”, “railsapps”, “readme”, “routes”, “saas”, “setup”, “testing”, “views”]
Preferences:
{:git=>true, :railsapps=>“none”, :dev_webserver=>“webrick”, :prod_webserver=>“puma”, :database=>“mongodb”, :orm=>“mongoid”, :templates=>“erb”, :unit_test=>“rspec”, :integration=>“cucumber”, :fixtures=>“factory_girl”, :frontend=>“bootstrap”, :bootstrap=>“sass”, :email=>“mandrill”, :authentication=>“devise”, :devise_modules=>“default”, :authorization=>“cancan”, :form_builder=>“simple_form”, :starter_app=>“admin_app”, :quiet_assets=>true, :ban_spiders=>true, :rvmrc=>true}

devise + Omniauth?

is there a way to generate the app with Devise for "regular" authentication and Omniauth for Facebook?

thanks,
Gary

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.