I would probably use a partial for this as this doesn’t seem abstract
enough to be a helper. Will you use this form differently in more
than one place?
To answer you’re exact question, I’m not sure that remote_form_tag is
in FormTagHelper - it’s in PrototypeHelper. However, I would
seriously consider using a partial as this helper could get real
messy, real fast.
If you really do need to use a helper, I’d suggest having a look at
the source code for the tag helpers and see how it’s handled by Rails.
I would probably use a partial for this as this doesn’t seem abstract
enough to be a helper. Will you use this form differently in more
than one place?
Well maybe this time I can use partial, but I think using partials could
also become messy (in my case), since with them I have to stick to
variable names. In search form this will be no problem, but in others
could be. Anyway, now I wonder how to use Rails helpers in custom helper
;))
To answer you’re exact question, I’m not sure that remote_form_tag is
in FormTagHelper - it’s in PrototypeHelper. However, I would
seriously consider using a partial as this helper could get real
messy, real fast.
Yes, exactly ProtypeHelper. I have tested with this include