I want to generate scaffolding based on an existing model using scaffold_controller.
rails generate scaffold_controller NAME
I only get empty views, I'm not getting the fields defined in the migration. Not sure what is really going on because I use to do this and it use to work all the time in previous projects.
I'm using Rails 3.2.12, is this feature no longer available?
Thanks for the help.
After further investigation, I think the problem is specific to my Rails installation, not sure what but if you ever get this problem, this is the workaround that I found but requires twitter bootstrap:
rails generate scaffold_controller <YOUR_MODEL_NAME>
rails g bootstrap:themed <YOUR_MODEL_NAME> -f
Hope it helps.