Question about generate model

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:innormalize_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:innew’
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:indecomposed_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’

On Apr 23, 11:59am, Jeff K. [email protected] 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

did u config ur mysql ok?
the best answer is change to *nix os.
that wont many unknow errors occurs.

2012/4/25 Frederick C. [email protected]

please help
lib/action_dispatch/routing/mapper.rb:179:in
actionpack-3.2.0/lib/action_dispatch/routing/mapper.rb:1302:in

You received this message because you are subscribed to the Google G.
“Ruby on Rails: Talk” group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.


*Ըϲͬ!

ʯҾ
ϢѧԺ ϵӦ÷
Dalian NEUSOFT Institute of Information
й-԰·8
ʱࣺ116023
*Mail:[email protected] [email protected]
Phone:15242613529

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. :slight_smile:

Jeff

On Apr 24, 6:10pm, Frederick C. [email protected]