Class: Clot::FormTag
- Inherits:
-
LiquidForm
- Object
- Liquid::Block
- LiquidForm
- Clot::FormTag
- Defined in:
- lib/clot/form_tag.rb
Constant Summary
Constants inherited from LiquidForm
Instance Method Summary collapse
- #get_form_errors ⇒ Object
- #get_form_header(context) ⇒ Object
- #set_method ⇒ Object
- #set_variables(context) ⇒ Object
Methods inherited from LiquidForm
#get_form_body, #get_form_footer, #initialize, #render, #render_form, #set_upload, #syntax_error
Methods included from TagHelper
Methods included from FormFilters
#concat, #drop_class_to_table_item, #form_file_item, #form_input_item, #form_item, #form_select_item, #form_text_item, #get_attribute_value, #get_error_class, #get_id_from_name, #get_selection_value, #input_to_text, #set_param, #submit_button
Methods included from LinkFilters
#delete_link, #edit_link, #gen_delete_link, #gen_delete_onclick, #index_link, #new_link, #stylesheet_link, #view_link
Methods included from UrlFilters
#delete_link, #edit_link, #get_nested_edit_url, #get_nested_url, #index_link, #object_url, #stylesheet_url, #view_link
Constructor Details
This class inherits a constructor from Clot::LiquidForm
Instance Method Details
#get_form_errors ⇒ Object
7 8 9 |
# File 'lib/clot/form_tag.rb', line 7 def get_form_errors "" end |
#get_form_header(context) ⇒ Object
4 5 6 |
# File 'lib/clot/form_tag.rb', line 4 def get_form_header(context) "<form action=\"#{resolve_value @form_object,context}\" method=\"#{@http_method}\"#{@upload_info}>" end |
#set_method ⇒ Object
17 18 19 |
# File 'lib/clot/form_tag.rb', line 17 def set_method @http_method = @attributes['method'] ||= 'post' end |
#set_variables(context) ⇒ Object
11 12 13 14 15 |
# File 'lib/clot/form_tag.rb', line 11 def set_variables(context) set_method set_upload #super end |