Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialalborz
Full Stack JavaScript Techdegree Graduate 30,885 PointsGetting an error after doing rake db:migrate
Hi - I'm going through Mackenzie Child's tutorial on how to make a Reddit clone. After generating the User with devise via rails g devise User
and then attempting to rake db:migrate
, I get an error saying:
rake aborted!
NoMethodError: undefined method merge!' for #<ActionDispatch::Routing::Mapper::Scope:0x007fbef0d03a20>
/Users/am/Desktop/12_in_12/raddit/config/routes.rb:2:in
block in <top (required)>'
/Users/am/Desktop/12_in_12/raddit/config/routes.rb:1:in <top (required)>'
/Users/am/Desktop/12_in_12/raddit/config/environment.rb:5:in
<top (required)>'
NoMethodError: undefined method merge!' for #<ActionDispatch::Routing::Mapper::Scope:0x007fbef0d03a20>
/Users/am/Desktop/12_in_12/raddit/config/routes.rb:2:in
block in <top (required)>'
/Users/am/Desktop/12_in_12/raddit/config/routes.rb:1:in <top (required)>'
/Users/am/Desktop/12_in_12/raddit/config/environment.rb:5:in
<top (required)>'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
Is anyone familiar with this? Thanks!
1 Answer
alborz
Full Stack JavaScript Techdegree Graduate 30,885 PointsFound the answer! In case anyone else is experiencing the same issue, this helped:
https://stackoverflow.com/questions/27611947/devise-raises-error-with-rails-4-2-upgrade