module RailsAjax::FormTagHelper

Module defining methods to include in ActionView::Helpers::FormTagHelper

Public Instance Methods

form_tag(url_for_options = {}, options = {}, &block) click to toggle source

Replaces #form_tag with an Ajax updated version

Calls superclass method
# File lib/rails-ajax/form_tag_helper.rb, line 7
def form_tag(url_for_options = {}, options = {}, &block)
  options.merge!({ :remote => true, :'data-rails-ajax-remote' => true }) if (RailsAjax.config.enabled? and RailsAjax.rails_ajaxifiable?(options))
  return super(url_for_options, options, &block)
end