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 trialMathew Turner
325 PointsGetting error when I give the command: rails generate devise user
I'm getting this error in my terminal:
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-4.0.0.rc2/lib
/active_support/dependencies.rb:228:in require': C:/Users/Owner/Projects/YourEp
icLife/config/environments/development.rb:29: syntax error, unexpected '<' (Synt
axError)
..._mailer.default_url_options = < :host => '127.0.0.1:3000'>
... ^
C:/Users/Owner/Projects/YourEpicLife/config/environments/development.rb:30: synt
ax error, unexpected keyword_end
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0.rc2/lib/active_support/dependencies.rb:228:in
block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0.rc2/lib/active_support/dependencies.rb:213:in load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0.rc2/lib/active_support/dependencies.rb:228:in
require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/engine.rb:591:in block (2 levels) in <class:Engine>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/engine.rb:590:in
each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/engine.rb:590:in block in <class:Engine>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/initializable.rb:30:in
instance_exec'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/initializable.rb:30:in run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/initializable.rb:55:in
block in run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:150:in block i
n tsort_each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:183:in
block (
2 levels) in each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:210:in block (
2 levels) in each_strongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:219:in
each_st
rongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:209:in block i
n each_strongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/initializable.rb:44:in
each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/initializable.rb:44:in tsort_each_child'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:203:in
each_st
rongly_connected_component_from'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:182:in block i
n each_strongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in
each'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:180:in each_st
rongly_connected_component'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/1.9.1/tsort.rb:148:in
tsort_e
ach'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/initializable.rb:54:in run_initializers'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/application.rb:215:in
initialize!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/railtie/configurable.rb:30:in method_missing'
from C:/Users/Owner/Projects/YourEpicLife/config/environment.rb:5:in
<t
op (required)>'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0.rc2/lib/active_support/dependencies.rb:228:in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0.rc2/lib/active_support/dependencies.rb:228:in
block in require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0.rc2/lib/active_support/dependencies.rb:213:in load_dependency'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/activesupport-
4.0.0.rc2/lib/active_support/dependencies.rb:228:in
require'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/application.rb:189:in require_environment!'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/railties-4.0.0
.rc2/lib/rails/commands.rb:47:in
<top (required)>'
from bin/rails:4:in require'
from bin/rails:4:in
<main>'
Sorry its really big. I changed the local host from: 'localhost:3000' to 'localhost 127.0.0.1:300' thinking it was because I'm using a windows machine. No such Luck and now I'm lost.
I tried going through the authentication lesson before and everything just collapsed after the the third and I can't find out what's going wrong. Also, no offense meant, but did you guys check to see if the ruby lesson on the site right now even works with the newest version of Ruby on Rails. I only ask because when watching the videos with Jason there are very large chunks of code missing from my stuff that are there with his.
Thanks and sorry for the large error code,
Matt
1 Answer
Nima Shariatian
1,760 Pointshmm looks like your config is messed up , have a loop inside your config/enviroment/development and see if your mailer is correct, it should be:
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
Mathew Turner
325 PointsMathew Turner
325 PointsThanks.
Nima Shariatian
1,760 PointsNima Shariatian
1,760 Pointsdid it fix your problem?