Class: ScaffoldTemplate

Inherits:
FormFactor::Base show all
Defined in:
lib/form_factor/scaffold_template.rb

Instance Attribute Summary

Attributes inherited from FormFactor::Base

#options

Instance Method Summary collapse

Methods inherited from FormFactor::Base

#initialize, #javascripts

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

#stylesheetsObject



2
3
4
# File 'lib/form_factor/scaffold_template.rb', line 2

def stylesheets
  'scaffold'
end