Module: RestfulController::Actions::New

Defined in:
lib/restful_controller/actions/new.rb

Instance Method Summary collapse

Instance Method Details

#newObject



4
5
6
7
# File 'lib/restful_controller/actions/new.rb', line 4

def new
  model = self.class.model_class.build
  instance_variable_set("@#{self.class.model_name}", model)
end