Commit a90f7016 by liyijie

Use view_path instead of view_class_path

parent 5362256e
...@@ -2,15 +2,15 @@ class SimpleController::BaseController < ::InheritedResources::Base ...@@ -2,15 +2,15 @@ class SimpleController::BaseController < ::InheritedResources::Base
respond_to :json respond_to :json
def index def index
index!( { template: "#{self.class.view_class_path}/index" } ) index!( { template: "#{self.class.view_path}/index" } )
end end
def show def show
show!( { template: "#{self.class.view_class_path}/show" } ) show!( { template: "#{self.class.view_path}/show" } )
end end
def create def create
create!( { template: "#{self.class.view_class_path}/show", status: 201 } ) create!( { template: "#{self.class.view_path}/show", status: 201 } )
end end
protected protected
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment