Module: BehaviorHelper
- Defined in:
- app/helpers/behavior_helper.rb
Instance Method Summary collapse
Instance Method Details
#behavior_tag(conf) ⇒ Object
3 4 5 6 7 |
# File 'app/helpers/behavior_helper.rb', line 3 def behavior_tag(conf) return text_area_tag("conf[#{conf}]", config[conf], :id => conf) if config.[conf][:type] == 'text' return password_field_tag("conf[#{conf}]", config[conf], :id => conf) if config.[conf][:type] == 'password' text_field_tag("conf[#{conf}]", config[conf], :id => conf) end |