cells
cells copied to clipboard
form_for and form_tag content is escaped from cell
Have an issue really similar to http://stackoverflow.com/questions/37538519/using-forms-for-with-rails-cells-gem but with erb and rails 3.
Same here - I use cells + cells-erb with rails 3 and the form_tag-output is escaped - did you (or anyone else) find any fix for this in the meantime?
in config/initializers/cells.rb you can write:
module Cell
module Erb
def form_tag_in_block(html_options, &block)
content = capture(&block)
"#{form_tag_html(html_options)}" << content.to_s << "</form>"
end
end
end
and it should works
Awesome dude - that worked like a charm - thanks a lot!