class ActionView::Helpers::FormBuilder

Public Instance Methods

nostalgic_collection_select(method, collection, value_method, text_method, options = {}, html_options = {}) click to toggle source
# 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 = {}) click to toggle source
# 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