I'm using multiple scaffolding in my testapp project.
i have created 1st scaffold like this:
rails g Post title desc:text
it was successful and created all relevant files and controller as well.
but when i made another scaffold :
testapp$ rails g scaffold product name:string information:text 'price:decimal{7,2}' stock:integer available:boolean
invoke active_record
create db/migrate/20140513062549_create_products.rb
create app/models/product.rb
invoke test_unit
create test/models/product_test.rb
create test/fixtures/products.yml
invoke resource_route
route resources :products
invoke inherited_resources_controller
create app/controllers/products_controller.rb
invoke erb
create app/views/products
create app/views/products/index.html.erb
create app/views/products/edit.html.erb
create app/views/products/show.html.erb
create app/views/products/new.html.erb
create app/views/products/_form.html.erb
invoke test_unit
create test/controllers/products_controller_test.rb
invoke helper
create app/helpers/products_helper.rb
invoke test_unit
create test/helpers/products_helper_test.rb
invoke jbuilder
create app/views/products/index.json.jbuilder
create app/views/products/show.json.jbuilder
invoke assets
invoke coffee
create app/assets/javascripts/products.js.coffee
invoke scss
create app/assets/stylesheets/products.css.scss
invoke scss
identical app/assets/stylesheets/scaffolds.css.scss
but when i open the controller app/controllers/products_controller.rb
it is empty, why so ??
1 more thing i'm also using activeadmin, i know it has nothing to do with it.