Sha256: 5b4ea213c2151b7c28c32b78f53f1c6043660e8d99ecf7c74163766f2daa35de
Contents?: true
Size: 665 Bytes
Versions: 35
Compression:
Stored size: 665 Bytes
Contents
module <%= object.app_name %> class <%= object.name_as_class %>View < Vedeu::ApplicationView def render Vedeu.renders do # Build up the view programmatically... # # view '<%= object.name %>' do # lines do # line 'some content...' # end # end # ...or use the template in 'app/views/templates/<%= object.name %>' # template_for('<%= object.name %>', template('<%= object.name %>'), object, options) end end private def object end def options {} end end end
Version data entries
35 entries across 35 versions & 2 rubygems