Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #7540 (new defect)

Opened 4 years ago

Last modified 3 years ago

form_tag helper with block is unusable inside other helpers

Reported by: dob Assigned to: core
Priority: low Milestone: 2.x
Component: ActionPack Version: edge
Severity: minor Keywords: form_tag block helper concat
Cc:

Description

It would seem that the form_tag helper with block idiom has the unfortunate side-effect of making it impossible to use the form_tag helper from another helper. In general, it would seem a bad practice for any helper to write directly to _erbout using concat.

Change History

04/24/07 17:32:01 changed by mixonic

Bump? Shouldn't this be fairly high priority if form_tag is now the only official way to make form tags?

The depreciation has succeeded in scaring me, but the replacement doesn't seem complete...

08/06/07 04:09:17 changed by crafterm

I agree, I'd like to be able to use the form_tag block syntax in further helpers to be able to dry up repeated forms that differ by only small amounts of code.

11/12/07 19:20:26 changed by emmett

Creating custom form helpers requires you to use deprecated methods right now. It's very annoying.