Sha256: 6cf9efe4f57e8cbf0fe85a7830099ecb756b8a4b222a59a748667a845cc881cc
Contents?: true
Size: 451 Bytes
Versions: 14
Compression:
Stored size: 451 Bytes
Contents
module Agilibox::FormBackUrl def back_url_tag tag(:input, :type => "hidden", :name => "back_url", :value => (params[:back_url] || request.referer), ) end def form_tag_with_body(html_options, content) output = form_tag_html(html_options) output.safe_concat(back_url_tag) output << content output.safe_concat("</form>") end end ActionView::Helpers::FormTagHelper.send(:prepend, Agilibox::FormBackUrl)
Version data entries
14 entries across 14 versions & 1 rubygems