Class: ActionView::Helpers::FormBuilder

Inherits:
Object
  • Object
show all
Includes:
AssetTagHelper
Defined in:
lib/nostalgic/form_builder.rb

Instance Method Summary collapse

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, options = {}, html_options = {})
  @template.render 'nostalgic/collection_select',
      :f => self, :attr => method, :collection => collection, :value_method => value_method, :text_method => text_method,
      :options => options, :html_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, options = {})
  @template.render 'nostalgic/text_field', :f => self, :attr => method, :css_class => options[:class]
end