Skip to content

Commit

Permalink
to fix bundle exec rake setup
Browse files Browse the repository at this point in the history
After bundle install, then I run bundle exec rake setup, and I have the following errors:
```
➜  practicing-ruby-web git:(master) bundle exec rake setup

rake aborted!
undefined method `color' for "♥ ":String
/home/david/.rvm/gems/ruby-2.1.1/gems/rails_setup-0.0.3/lib/rails_setup/environment.rb:17:in `heart'
/home/david/gitrepos/practicing-ruby-web/lib/tasks/setup.rake:15:in `block in <top (required)>
```
According to README.md in rainbow, we should use require 'rainbow/ext/string'  for following code in rails_setup
```ruby
 "\u2665 ".color(:red)

```
  • Loading branch information
ruanwz committed Sep 16, 2014
1 parent 917bf3b commit 2c7489e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/setup.rake
@@ -1,4 +1,5 @@
require 'rails_setup'
require 'rainbow/ext/string'

namespace :setup do
desc 'Create .env file from .env.example'
Expand Down

0 comments on commit 2c7489e

Please sign in to comment.