Sha256: 70100ac9d5be9913eb906794cecb644b37ac1781f2505500417d65568633a975

Contents?: true

Size: 628 Bytes

Versions: 6

Compression:

Stored size: 628 Bytes

Contents

require 'action_view'

class ActionView::Helpers::FormBuilder
  include ActionView::Helpers::AssetTagHelper

  def nostalgic_text_field(method, options = {})
    @template.render 'nostalgic/text_field', :f => self, :attr => method, :css_class => options[:class]
  end

  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

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nostalgic-0.5.1 lib/nostalgic/form_builder.rb
nostalgic-0.5.0 lib/nostalgic/form_builder.rb
nostalgic-0.4.1 lib/nostalgic/form_builder.rb
nostalgic-0.4.0 lib/nostalgic/form_builder.rb
nostalgic-0.3.0 lib/nostalgic/form_builder.rb
nostalgic-0.2.0 lib/nostalgic/form_builder.rb