Sha256: 08ba29d7ffd0ee99b9344e6c91de2fbd9e8f986a948cb163e007847bcb12cf83
Contents?: true
Size: 485 Bytes
Versions: 25
Compression:
Stored size: 485 Bytes
Contents
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
Version data entries
25 entries across 16 versions & 1 rubygems