Welcome to the Treehouse Community
The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.
Evan Huddleson
12,623 PointsUnable 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:in
block 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:in
class_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:in
run'
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:in
block 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:in
map'
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:in
dispatch'
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:in
block 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:in
run'
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:in
block 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:in
map'
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:in
dispatch'
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:in
invoke'
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:in
require'
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:in
load_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:in
generate_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:in
run_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:in
require'
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:in
load_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:in
block 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:in
load'
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:in
require'
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

Andrew Cottage
20,536 PointsI think you have to do
Rails generate scaffold status name:string content:text
Evan Huddleson
12,623 PointsFacePalm. Thanks man, I was looking at this last night when I realized I skimmed on the exact code.
Much Appreciated!

Andrew Cottage
20,536 PointsNo problem man. I've had those times where I've been stuck on problems for days. Keep going, and don't give up!
Evan Huddleson
12,623 PointsReally appreciate the encouragement brother, thanks!