add map.resources :users to your config/routes.rb file
tom bandejapaisa wrote: > I used scaffold command > > generate scaffold User username:string password:string > email:string validation_code:string validated:boolean > > and when i go to http://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 > > -- =============================================================================== Tomas Meinlschmidt, MS {MCT, MCP+I, MCSE, AER}, NetApp Filer/NetCache - experienced RoR/PHP freelancer, available for hire www.meinlschmidt.com www.maxwellrender.cz www.lightgems.cz =============================================================================== --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

