Module: Undercarriage::Controllers::Restful::Actions::NewConcern
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/undercarriage/controllers/restful/actions/new_concern.rb
Overview
New restful action
Usage
class ExamplesController < ApplicationController
include Undercarriage::Controllers::RestfulConcern
end
Instance Method Summary collapse
-
#new ⇒ Object
New action.
Instance Method Details
#new ⇒ Object
New action
Usage
class ExamplesController < ApplicationController
include Undercarriage::Controllers::RestfulConcern
##
# This method is only needed if you want to override the action entirely. Otherwise, it is not needed.
# Database resources can be accessed as `@new_resource` or `@example`
#
# def new
# ...
# end
end
41 42 43 44 |
# File 'lib/undercarriage/controllers/restful/actions/new_concern.rb', line 41 def new nested_resource_pre_build nested_resource_build end |