Hello

I am trying to run the command:

rails g model User name:string email:string

and I am getting the below error, and i dont know what it means -
please help
thanks - Jeff

C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.0/
lib/action_dispatch/routing/mapper.rb:179:in
`default_controller_and_action': missing :controller
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:76:in
`normalize_options!'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:59:in
`initialize'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in `new'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in
`add_route'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1282:in
`decomposed_match'
from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1268:in `block
in match'

...

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Search Discussions

  • Frederick Cheung at Apr 25, 2012 at 12:10 am

    On Apr 23, 11:59 am, Jeff Kyzer wrote:
    Hello

    I am trying to run the command:

    rails g model User name:string email:string

    and I am getting the below error, and i dont know what it means -
    please help
    thanks - Jeff
    One of your routes isn't specifying the controller it routes. The full
    stack trace probably has the line in routes.rb that is being
    complained about

    Fred

    C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.0/
    lib/action_dispatch/routing/mapper.rb:179:in
    `default_controller_and_action': missing :controller
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:76:in
    `normalize_options!'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:59:in
    `initialize'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in `new'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in
    `add_route'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1282:in
    `decomposed_match'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1268:in `block
    in match'

    ...
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Yan shi at Apr 25, 2012 at 1:23 am
    did u config ur mysql ok?
    the best answer is change to *nix os.
    that wont many unknow errors occurs.

    2012/4/25 Frederick Cheung <frederick.cheung@gmail.com>
    On Apr 23, 11:59 am, Jeff Kyzer wrote:
    Hello

    I am trying to run the command:

    rails g model User name:string email:string

    and I am getting the below error, and i dont know what it means -
    please help
    thanks - Jeff
    One of your routes isn't specifying the controller it routes. The full
    stack trace probably has the line in routes.rb that is being
    complained about

    Fred

    C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.0/
    lib/action_dispatch/routing/mapper.rb:179:in
    `default_controller_and_action': missing :controller
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:76:in
    `normalize_options!'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:59:in
    `initialize'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in `new'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in
    `add_route'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1282:in
    `decomposed_match'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1268:in `block
    in match'

    ...
    --
    You received this message because you are subscribed to the Google Groups
    "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to
    rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at
    http://groups.google.com/group/rubyonrails-talk?hl=en.

    --
    *愿爱与喜悦心与你同在!

    石岩敬上
    大连东软信息学院 计算机系软件工程应用方向
    Dalian NEUSOFT Institute of Information
    中国-大连市软件园路8号
    邮编:116023
    **Mail:hlcfan.yan@gmail.com* <hlcfan.yan@gmail.com>
    *Phone:15242613529*

    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
  • Jeff Kyzer at Apr 25, 2012 at 3:03 pm
    Thanks a ton Fred. I went to my routes.rb file and after staring at
    it for about an hour, I found the typo. dam typos. learning this is
    a ton of fun, but I am losing some hair. :)

    Jeff
    On Apr 24, 6:10 pm, Frederick Cheung wrote:
    On Apr 23, 11:59 am, Jeff Kyzer wrote:> Hello
    I am trying to run the command:
    rails g model User name:string email:string
    and I am getting the below error, and i dont know what it means -
    please help
    thanks - Jeff
    One of your routes isn't specifying the controller it routes. The full
    stack trace probably has the line in routes.rb that is being
    complained about

    Fred






    C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/actionpack-3.2.0/
    lib/action_dispatch/routing/mapper.rb:179:in
    `default_controller_and_action': missing :controller
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:76:in
    `normalize_options!'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:59:in
    `initialize'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in `new'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in
    `add_route'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1282:in
    `decomposed_match'
    from C:/RailsInstaller/Ruby1.9.2/lib/ruby/gems/1.9.1/gems/
    actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1268:in `block
    in match'
    ...
    --
    You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
    To post to this group, send email to rubyonrails-talk@googlegroups.com.
    To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
    For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
grouprubyonrails-talk @
categoriesrubyonrails
postedApr 23, '12 at 5:00p
activeApr 25, '12 at 3:03p
posts4
users3
websiterubyonrails.org
irc#RubyOnRails

People

Translate

site design / logo © 2022 Grokbase