Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/65.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails 继承资源与德雷珀_Ruby On Rails_Ruby_Ruby On Rails 3_Inherited Resources_Draper - Fatal编程技术网

Ruby on rails 继承资源与德雷珀

Ruby on rails 继承资源与德雷珀,ruby-on-rails,ruby,ruby-on-rails-3,inherited-resources,draper,Ruby On Rails,Ruby,Ruby On Rails 3,Inherited Resources,Draper,如何使用 换句话说,如何为每个资源调用MethodDepartment?例如@posts代表索引,@post代表显示 我考虑过默认范围,但与Draper相关的所有内容都需要在控制器中,而不是模型中,imho。您可以在Draper的Github中查看此讨论:

如何使用

换句话说,如何为每个资源调用MethodDepartment?例如@posts代表索引,@post代表显示


我考虑过默认范围,但与Draper相关的所有内容都需要在控制器中,而不是模型中,imho。

您可以在Draper的Github中查看此讨论: