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 trial

Ruby Build a Simple Ruby on Rails Application Getting Started with Rails Generate a Rails Application

Unable to have results in Sublime Text 2

Everything works perfectly well until the point after I exit the Rails Server. I exit the server with "ctrl + c" and then when I go to enter "rails generate scaffold status:name content:text" I receive this output instead of that displayed in the video...

"/Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/generators/base.rb:258:in const_defined?': wrong constant name Status:name (NameError) from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/generators/base.rb:258:inblock in class_collisions' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/generators/base.rb:249:in each' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/generators/base.rb:249:inclass_collisions' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/generators/named_base.rb:195:in block in check_class_collision' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/command.rb:27:inrun' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:inblock in invoke_all' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in each' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:inmap' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in invoke_all' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/group.rb:232:indispatch' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:115:in invoke' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/group.rb:277:inblock in _invoke_for_class_method' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/shell.rb:68:in with_padding' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/group.rb:266:in_invoke_for_class_method' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/group.rb:133:in _invoke_from_option_orm' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/command.rb:27:inrun' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:126:in invoke_command' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:inblock in invoke_all' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in each' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:inmap' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/invocation.rb:133:in invoke_all' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/group.rb:232:indispatch' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/thor-0.19.1/lib/thor/base.rb:440:in start' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/generators.rb:157:ininvoke' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/commands/generate.rb:11:in <top (required)>' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:inrequire' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in block in require' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:inload_dependency' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in require' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:135:ingenerate_or_destroy' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:51:in generate' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:inrun_command!' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/railties-4.1.1/lib/rails/commands.rb:17:in <top (required)>' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:inrequire' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in block in require' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:inload_dependency' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:247:in require' from /Users/ehuddleson/Desktop/WebDesign/projects/treebook/bin/rails:8:in<top (required)>' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:in load' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:inblock in load' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:232:in load_dependency' from /Users/ehuddleson/.rvm/gems/ruby-2.1.2/gems/activesupport-4.1.1/lib/active_support/dependencies.rb:241:inload' from /Users/ehuddleson/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:in require' from /Users/ehuddleson/.rvm/rubies/ruby-2.1.2/lib/ruby/2.1.0/rubygems/core_ext/kernel_require.rb:55:inrequire' from -e:1:in `<main>'"

Would greatly appreciate anyone's help or input I've been working on trying to find a solution for a couple hours now.

Thank You,

Evan

4 Answers

I think you have to do

Rails generate scaffold status name:string content:text

FacePalm. Thanks man, I was looking at this last night when I realized I skimmed on the exact code.

Much Appreciated!

No problem man. I've had those times where I've been stuck on problems for days. Keep going, and don't give up!

Really appreciate the encouragement brother, thanks!