Sha256: c2d67f4b0a5acf370066317e44402d4b3abd892fc376e1b9bdffedd15ed4390c

Contents?: true

Size: 594 Bytes

Versions: 51

Compression:

Stored size: 594 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._component || 'main'}/#{params._controller || 'main'}/#{params._action || 'index'}"
    end
  end
end

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
volt-0.9.7.pre8 templates/component/controllers/main_controller.rb.tt
volt-0.9.7.pre7 templates/component/controllers/main_controller.rb.tt
volt-0.9.7.pre6 templates/component/controllers/main_controller.rb.tt
volt-0.9.7.pre5 templates/component/controllers/main_controller.rb.tt
volt-0.9.7.pre3 templates/component/controllers/main_controller.rb.tt
volt-0.9.7.pre2 templates/component/controllers/main_controller.rb.tt
volt-0.9.6 templates/component/controllers/main_controller.rb.tt
volt-0.9.6.pre3 templates/component/controllers/main_controller.rb.tt
volt-0.9.6.pre2 templates/component/controllers/main_controller.rb.tt
volt-0.9.6.pre1 templates/component/controllers/main_controller.rb.tt
volt-0.9.5 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre12 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre11 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre9 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre8 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre7 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre6 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre5 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre4 templates/component/controllers/main_controller.rb.tt
volt-0.9.5.pre3 templates/component/controllers/main_controller.rb.tt