On Nov 30, 10:51 am, Peter De Berdt <peter.de.be...@pandora.be> wrote:
> Should be fairly trivial to add this yourself: > > - alias the to_input_field_tag from Rails to to_input_field_tag_old > (it's in the InstanceTagMethods module of Rails if I recall correctly) > - define your own to_input_field_tag > - all that method needs to do is merge the > I18n.t("helpers.placeholder.#{object_name}.#{method_name}") value into > the options hash as :placeholder and then call the aliassed > to_input_field_tag_old Thanks for the pointer. I submitted a patch to to_input_field_tag and attached it to the ticket: <https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/ 6080> Paul -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.