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

cannot create "user" Model

I'm following the video and I try to run the command:

rails generate devise user

But unfortunately this is what I get:

$ rails generate devise user
DL is deprecated, please use Fiddle
c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1.8/lib/action
_dispatch/routing/mapper.rb:249:in `default_controller_and_action': 'statuses:'
is not a supported controller name. This can lead to potential routing problems.
 See http://guides.rubyonrails.org/routing.html#specifying-a-controller-to-use (
ArgumentError)
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:117:in `normalize_options!'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:65:in `initialize'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:1493:in `new'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:1493:in `add_route'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:1472:in `decomposed_match'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:1453:in `block in match'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:1443:in `each'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:1443:in `match'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:340:in `root'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/mapper.rb:1514:in `root'
        from r:/ruby/Treebook/config/routes.rb:3:in `block in <top (required)>'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/route_set.rb:337:in `instance_exec'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/route_set.rb:337:in `eval_block'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/actionpack-4.1
.8/lib/action_dispatch/routing/route_set.rb:315:in `draw'
        from r:/ruby/Treebook/config/routes.rb:1:in `<top (required)>'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:241:in `load'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:241:in `block in load'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:241:in `load'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application/routes_reloader.rb:40:in `each'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application/routes_reloader.rb:40:in `load_paths'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application/routes_reloader.rb:16:in `reload!'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application/routes_reloader.rb:26:in `block in updater'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/file_update_checker.rb:75:in `call'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/file_update_checker.rb:75:in `execute'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application/routes_reloader.rb:27:in `updater'
        from c:in `execute_if_updated'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application/finisher.rb:71:in `block in <module:Finisher>'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/initializable.rb:30:in `instance_exec'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/initializable.rb:30:in `run'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/initializable.rb:55:in `block in run_initializers'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:226:in `block i
n tsort_each'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:348:in `block (
2 levels) in each_strongly_connected_component'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:427:in `each_st
rongly_connected_component_from'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:347:in `block i
n each_strongly_connected_component'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:345:in `each'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:345:in `call'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:345:in `each_st
rongly_connected_component'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:224:in `tsort_e
ach'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/2.1.0/tsort.rb:205:in `tsort_e
ach'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/initializable.rb:54:in `run_initializers'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application.rb:300:in `initialize!'
        from r:/ruby/Treebook/config/environment.rb:5:in `<top (required)>'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:247:in `require'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/activesupport-
4.1.8/lib/active_support/dependencies.rb:247:in `require'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/application.rb:276:in `require_environment!'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:147:in `require_application_and_environmen
t!'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:133:in `generate_or_destroy'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:51:in `generate'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
        from c:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/railties-4.1.8
/lib/rails/commands.rb:17:in `<top (required)>'
        from bin/rails:4:in `require'
        from bin/rails:4:in `<main>'

Do you know how to fix this problem? Thanks in advance :)

2 Answers

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

You seem to be using Windows, which is never a good idea with Rails development (I know, Treehouse doesn't say it anywhere, but you have to trust me). I have no idea what this error means and it will be hard to find anyone who does, since almost all Rails devs use Unix-based systems. The only thing I can suggest is installing Linux (dual boot or using free VMWare Player) and using it for Rails development from now on. Less problems and more help online.

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Oh, you can also try one of these online development environments:

https://www.nitrous.io/

https://c9.io/

Macieju,

Dzięki wielkie za support :)

Thank You very much for your support and guidance. I will take a look at your solutions, the seem to look very promising. I am a Ruby newbie (sounds nice, doesn't it?) and I didn't know that DOS platform will cause this much of a trouble.

Cheers!

Maciej Czuchnowski
Maciej Czuchnowski
36,441 Points

Powodzenia :)

In case of problems don't hesitate to ask on this forum. If you decide to go with Ubuntu on dual boot or virtual machine, make sure you follow this tutorial: https://gorails.com/setup/ubuntu/14.04 (choose "Using rvm" tab, not rbenv). You can skip the installation of databases for now.