You may need to stop and restart your server (mongrel? webrick?) after
running the scaffold command to reload the new routes associated with
User.


On May 17, 7:44 am, bandejapaisa <[email protected]> wrote:
> I used scaffold command
>
>      generate scaffold User username:string password:string
> email:string validation_code:string validated:boolean
>
> and when i go tohttp://localhost:3000/users/i get this error:
>
> undefined local variable or method `new_user_path' for
> #<ActionView::Base:0x5f1c3f4>
>
> 25:
> 26: <br />
> 27:
> 28: <%= link_to 'New user', new_user_path %>
>
> Where is the local variable new_user_path supposed to be defined (the
> controller?).. and why didn't the script generate this?
>
> Thanks
>
> Ruby version    1.8.6 (i386-mswin32)
> RubyGems version        1.3.3
> Rails version   2.2.2
> Active Record version   2.2.2
> Action Pack version     2.2.2
> Active Resource version 2.2.2
> Action Mailer version   2.2.2
> Active Support version  2.2.2
--~--~---------~--~----~------------~-------~--~----~
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 [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
-~----------~----~----~----~------~----~------~--~---

Reply via email to