I have an assistant that I use to create a form. The parameters that are used to create the form fields are passed to the helper. I cannot figure out how to use a block outside the template.
For example:
def generate_form(path, fields) form_tag(path, method: :get) do
When I process partial parts inside a block, nothing is displayed on the displayed web page. If I combined a bunch of tags (field_tag, text_field_tag, etc.), then raw html will appear on the page.
I am using Rails 3.1.0
mushroom
source share