test/aliases_test.rb in josevalim-inherited_resources-0.7.3 vs test/aliases_test.rb in josevalim-inherited_resources-0.8.1
- old
+ new
@@ -2,10 +2,11 @@
class Student;
def self.human_name; 'Student'; end
end
-class StudentsController < InheritedResources::Base
+class StudentsController < ApplicationController
+ inherit_resources
def edit
edit! do |format|
format.xml { render :text => 'Render XML' }
end