-2

Due to scaffolding I get

class CommentsController < InheritedResources::Base

In it not a single action shown. But when I add

resources :comments

in routes and url

http://localhost:3000/comments/13

it work properly but I can't understand from where this action inherit. I want to custom that action. Is it possible?

Pavan
  • 33,316
  • 7
  • 50
  • 76

1 Answers1

0

This is due to gem inherited_resources check this http://railscasts.com/episodes/230-inherited-resources

Inside the controller define method which you want to override like for create eg:-

def create
  create! { products_path }
end
Arvind
  • 2,671
  • 1
  • 18
  • 32