Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

actions.rb:12:in `replace_in_file' (RuntimeError) #24

Open
larrywhy opened this issue Oct 28, 2014 · 1 comment
Open

actions.rb:12:in `replace_in_file' (RuntimeError) #24

larrywhy opened this issue Oct 28, 2014 · 1 comment

Comments

@larrywhy
Copy link

Hello xdite! I am reading the book Rails 101 (old version)
The bootstrappers gem I installed has some problem that I do not know how to fix.

When I start this command: bootstrappers groupme
It start installing related gem until one problem happened.
I have searched for a long time . I still can not find any solution about this problem.
Here is the error message (While creating the seo_helper.rb gem , the error happened):
.........
create config/initializers/seo_helper.rb
/usr/local/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/actions.rb:12:in replace_in_file': /Application\.routes\.draw do.*end/m not found in config/routes.rb (RuntimeError) from /usr/local/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/app_builder.rb:90:inremove_routes_comment_lines'
from /usr/local/lib/ruby/gems/2.1.0/gems/railties-4.1.6/lib/rails/generators/app_base.rb:133:in build' from /usr/local/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/generators/app_generator.rb:125:inremove_routes_comment_lines'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in run' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:ininvoke_command'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:230:in dispatch' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:ininvoke'
from /usr/local/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/generators/app_generator.rb:28:in bootstrappers_customization' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:inrun'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:230:indispatch'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:115:in invoke' from /usr/local/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/lib/bootstrappers/generators/app_generator.rb:10:infinish_template'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/command.rb:27:in run' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:126:ininvoke_command'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in block in invoke_all' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:ineach'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:in map' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/invocation.rb:133:ininvoke_all'
from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/group.rb:232:in dispatch' from /usr/local/lib/ruby/gems/2.1.0/gems/thor-0.19.1/lib/thor/base.rb:440:instart'
from /usr/local/lib/ruby/gems/2.1.0/gems/bootstrappers-4.2.1.1/bin/bootstrappers:12:in <top (required)>' from /usr/local/bin/bootstrappers:23:inload'
from /usr/local/bin/bootstrappers:23:in `

'

@larrywhy
Copy link
Author

i fixed it by this pull request . https://github.com/xdite/bootstrappers/pull/23/files
Thanks !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant