Sha256: 34251e30543cf6c4173d7185f0ec2633f0500dd93ae70f1d3a91406b0b04e8d0
Contents?: true
Size: 565 Bytes
Versions: 4
Compression:
Stored size: 565 Bytes
Contents
module <%= config[:component_name].camelize %> class MainController < Volt::ModelController def index # Add code for when the index view is loaded end def about # Add code for when the about view is loaded end private # the main template contains a #template binding that shows another # template. This is the path to that template. It may change based # on the params._controller and params._action values. def main_path params._controller.or('main') + '/' + params._action.or('index') end end end
Version data entries
4 entries across 4 versions & 1 rubygems