def new(options = {}, &block)
      current_authorizer.authorize :new, resource
      respond_with resource, options, &block
    end
def new(options = {}, &block)
      current_authorizer.authorize :new, resource
      respond_with resource, options, &block
    end
@note This is a template method that can be overridden by subclasses.
 This is a resourceful action to show the form to create record that user is allowed to.

 It can be customized as below in subclasses:

 ```
 def new
   # do something before the origin action
   options = {} # NOTE: see `options` parameter for more details
   new! options do |format| # NOTE: this is better than using `super`
     # NOTE: this block is for `respond_with` which works similar to `respond_to`
     # customize response behaviour, or do something before the request is rendered
   end
 end
 ```

 Otherwise, it can be replaced completely in subclasses:

 ```
 def new
   # NOTE: `@resource` will be used by the view, please ensure it is assigned, for example:
   @resource = Product.new new_arrival: true
 end
 ```
 @param options [Hash] (since 5.2.0) options for
   {https://www.rubydoc.info/gems/responders/ActionController/RespondWith#respond_with-instance_method
   respond_with}
 @yield [format] block for
   {https://www.rubydoc.info/gems/responders/ActionController/RespondWith#respond_with-instance_method
   respond_with}
   to customize response behaviour.
 @raise [Wallaby::Forbidden] if user has no access