Sha256: 641402fae773d91e8af8d64d6ffa90d56acc104cc01894cb1c5f934f6b04db1a

Contents?: true

Size: 598 Bytes

Versions: 6

Compression:

Stored size: 598 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.6.4 lib/nostalgic/form_builder.rb
nostalgic-0.6.3 lib/nostalgic/form_builder.rb
nostalgic-0.6.2 lib/nostalgic/form_builder.rb
nostalgic-0.6.1 lib/nostalgic/form_builder.rb
nostalgic-0.6.0 lib/nostalgic/form_builder.rb
nostalgic-0.5.2 lib/nostalgic/form_builder.rb