I typed ruby C:\RailsApps\app\script\generate scaffold users
It showed the list of exists… creates…
I try to access http://localhost:4000/users
And the page has:
Routing Error
No route matches “/users” with {:method=>:get}
Thanks for the help!
I typed ruby C:\RailsApps\app\script\generate scaffold users
It showed the list of exists… creates…
I try to access http://localhost:4000/users
And the page has:
Routing Error
No route matches “/users” with {:method=>:get}
Thanks for the help!
You’ve got to use the singular ‘user’ on the call to scaffold generate.
(Note that you can remove everything created by script\generate with
script\destroy.)
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs