Class: ScaffoldTemplate
- Inherits:
-
FormFactor::Base
- Object
- FormFactor::Base
- ScaffoldTemplate
- Defined in:
- lib/form_factor/scaffold_template.rb
Instance Attribute Summary
Attributes inherited from FormFactor::Base
Instance Method Summary collapse
Methods inherited from FormFactor::Base
Constructor Details
This class inherits a constructor from FormFactor::Base
Instance Method Details
#render(*parts) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/form_factor/scaffold_template.rb', line 6 def render(*parts) label,input = parts result = "<p>".html_safe + label + "<br/>".html_safe + input + "</p>".html_safe result end |
#stylesheets ⇒ Object
2 3 4 |
# File 'lib/form_factor/scaffold_template.rb', line 2 def stylesheets 'scaffold' end |