Topic: Using scaffolding
I've been following this online book:
I ran the commands:
rails generate scaffold User name:string email:string
bundle exec rake db:migrate
As I understand it I should be able to go to the following URL and it should display a list of users:
However I get this error:
No route matches [GET] "/users"
Try running rake routes for more information on available routes."
In the first chapter another application was created, could it be that the rails server is serving the first application instead of the one from the second chapter of the book?
Anyone any idea how to fix this issue?
Thanks in advance.
Last edited by CaptainChainsaw (2013-03-19 19:45:52)