lib/restful_controller/actions/new.rb in restful-controller-0.0.2 vs lib/restful_controller/actions/new.rb in restful-controller-0.0.3

- old
+ new

@@ -1,9 +1,9 @@ module RestfulController module Actions module New def new - model = self.class.model_class.new + model = self.class.model_class.build instance_variable_set("@#{self.class.model_name}", model) end end end end \ No newline at end of file