All Downloads are FREE. Search and download functionalities are using the official Maven repository.

rails5.controller.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
=begin
{{> info}}
=end
class {{classname}} < ApplicationController
{{#operations}}
{{#operation}}

{{#isRestfulIndex}}
  def index
    # Your code here

    render json: {"message" => "yes, it worked"}
  end
{{/isRestfulIndex}}
{{#isRestfulShow}}
  def show
    # Your code here

    render json: {"message" => "yes, it worked"}
  end
{{/isRestfulShow}}
{{#isRestfulCreate}}
  def create
    # Your code here

    render json: {"message" => "yes, it worked"}
  end
{{/isRestfulCreate}}
{{#isRestfulUpdate}}
  def update
    # Your code here

    render json: {"message" => "yes, it worked"}
  end
{{/isRestfulUpdate}}
{{#isRestfulDestroy}}
  def destroy
    # Your code here

    render json: {"message" => "yes, it worked"}
  end
{{/isRestfulDestroy}}
{{^isRestful}}
  def {{nickname}}
    # Your code here

    render json: {"message" => "yes, it worked"}
  end
{{/isRestful}}
{{/operation}}
{{/operations}}
end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy