Class: TokenInput
- Inherits:
-
SimpleForm::Inputs::Base
- Object
- SimpleForm::Inputs::Base
- TokenInput
- Defined in:
- lib/token_field/simple_form/token_input.rb
Instance Method Summary collapse
-
#input(wrapper_options = nil) ⇒ Object
one: <%= f.input :category_id, :as => :token %>.
Instance Method Details
#input(wrapper_options = nil) ⇒ Object
one: <%= f.input :category_id, :as => :token %>
many: <%= f.input :category_ids, :as => :token %>
10 11 12 13 14 15 16 17 18 19 |
# File 'lib/token_field/simple_form/token_input.rb', line 10 def input(=nil) if respond_to?(:merge_wrapper_options) = (, ). merge() else = .merge() end @builder.token_field(attribute_name, ) end |