Module: Formtastic::Inputs::Base::Placeholder

Included in:
DatetimePickerish, EmailInput, NumberInput, PasswordInput, PhoneInput, SearchInput, StringInput, TextInput, UrlInput
Defined in:
lib/formtastic/inputs/base/placeholder.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) input_html_options



6
7
8
# File 'lib/formtastic/inputs/base/placeholder.rb', line 6

def input_html_options
  {:placeholder => placeholder_text}.merge(super)
end

- (Object) placeholder_text



10
11
12
# File 'lib/formtastic/inputs/base/placeholder.rb', line 10

def placeholder_text
  localized_string(method, options[:placeholder], :placeholder)
end