I have an existing entity that has been created by scaffolding. Now I'm realizing that I don't really need to present the show view and thus I'd like to eliminate any methods and pieces that are now unnecessary. Besides the show method created at the object controller for me, which other pieces should I remove? These are the ones I can think of:
show.html.erb file for the entitylink_to reference to the object instances at the index.html.erb and edit.html.erb filesredirect_to calls on the update and create methods at the controllerIs there anything else that I should remove?
You should:
show action from the controllerredirect_tos in create and update to go to the new actionlink_tos from index.html.erb and edit.html.erb
app/views/entities/show.html.erb
resources :entities line in your config/routes.rb file to resources :entities, :except => :show
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With