Sha256: 8f4336be6f81d58a3d3919acfdb8f79de95115d30bfab3208dbb4c7bd19224ba
Contents?: true
Size: 365 Bytes
Versions: 1
Compression:
Stored size: 365 Bytes
Contents
class <%= options[:name].pluralize.camelize %>Controller < ApplicationController # before_action :<%= options[:name].singularize %>, only: [] private def <%= options[:name].singularize %> @<%= options[:name] %> = Object.find(params[:id]) end def <%= options[:name].singularize %>_params params.require(:<%= options[:name] %>).permit() end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
myrails-1.0.0 | lib/myrails/templates/rails/controller.rb |