Sha256: ce7192f676dbb59cb1331ef32a59f6da721cf3b6861d1c1f887cf1022a8f3a86
Contents?: true
Size: 590 Bytes
Versions: 6
Compression:
Stored size: 590 Bytes
Contents
class <%= class_name %> < Merb::Controller # Templates go in: views/index.html.<%= template_engine %> # Layouts go in: views/layout.application.html.<%= template_engine %> # Modify this method to use another location. def _template_location(action, type = nil, controller = controller_name) controller == "layout" ? "layout.#{action}.#{type}" : "#{action}.#{type}" end def index "Hello, I am flat Merb application. I only have one single file for the application, single file for configs and routes, and a directory for views." end def foo render end end
Version data entries
6 entries across 6 versions & 1 rubygems