Class: ActionView::Helpers::FormBuilder
- Inherits:
-
Object
- Object
- ActionView::Helpers::FormBuilder
- Includes:
- AssetTagHelper
- Defined in:
- lib/nostalgic/form_builder.rb
Instance Method Summary collapse
- #nostalgic_collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
- #nostalgic_text_field(method, options = {}) ⇒ Object
Instance Method Details
#nostalgic_collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) ⇒ Object
10 11 12 13 14 |
# File 'lib/nostalgic/form_builder.rb', line 10 def nostalgic_collection_select(method, collection, value_method, text_method, = {}, = {}) @template.render 'nostalgic/collection_select', :f => self, :attr => method, :collection => collection, :value_method => value_method, :text_method => text_method, :options => , :html_options => end |
#nostalgic_text_field(method, options = {}) ⇒ Object
6 7 8 |
# File 'lib/nostalgic/form_builder.rb', line 6 def nostalgic_text_field(method, = {}) @template.render 'nostalgic/text_field', :f => self, :attr => method, :css_class => [:class] end |