michael.hasenstein@googlemail.com
2010-Apr-12 15:02 UTC
error_message_on etc. removed - what''s the rationale?
I have searched the web high and low but could not find anything so I find myself forced to ask here - could so. pls. provide a link to some discussion or blog post that explains the rationale behind removing those helpers? What am I to do instead? I have no plans to complain at all, I''m merely interested in the background of this decision, since I believe it''s a little more far- reaching than one might think from this one innocent commit :-) -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Mislav Marohnić
2010-Apr-12 15:18 UTC
Re: error_message_on etc. removed - what''s the rationale?
If you are talking about view helpers that generate HTML for forms and validation errors, to me it''s pretty obvious why they were removed: they were like dynamic scaffold in old versions of rails — one magic method, lots of magic output, no way to easily see and customize what''s going on. You could be using these methods for a limited time, but if you at one point decided you want something slighty more different, you''d have to ditch these helpers and recreate the complete HTML yourself, which could lead to frustration (small change => lots of work => sad face). Generators are much better. The code is right in front of you, it teaches you, you can edit it or remove it with one swift keystroke. I''m not sure if the functionality removed recently is available in generator form, though. No big loss if it isn''t. On Mon, Apr 12, 2010 at 17:02, michael.hasenstein@googlemail.com < michael.hasenstein@googlemail.com> wrote:> I have searched the web high and low but could not find anything so I > find myself forced to ask here - could so. pls. provide a link to some > discussion or blog post that explains the rationale behind removing > those helpers? What am I to do instead? > > I have no plans to complain at all, I''m merely interested in the > background of this decision, since I believe it''s a little more far- > reaching than one might think from this one innocent commit :-)-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
michael.hasenstein@googlemail.com
2010-Apr-12 15:39 UTC
Re: error_message_on etc. removed - what''s the rationale?
I was also asking because I don''t seem to have any error messages on the model object right now... (didn''t verify it by checking rails code yet, busy with other stuff) I have found this ticket which explains some of it, I consider my question answered :-) https://rails.lighthouseapp.com/projects/8994/tickets/1484-deprecate-error_messages_for On Apr 12, 5:18 pm, Mislav Marohnić <mislav.maroh...@gmail.com> wrote:> If you are talking about view helpers that generate HTML for forms and > validation errors, to me it''s pretty obvious why they were removed: they > were like dynamic scaffold in old versions of rails — one magic method, lots > of magic output, no way to easily see and customize what''s going on. You > could be using these methods for a limited time, but if you at one point > decided you want something slighty more different, you''d have to ditch these > helpers and recreate the complete HTML yourself, which could lead to > frustration (small change => lots of work => sad face). > > Generators are much better. The code is right in front of you, it teaches > you, you can edit it or remove it with one swift keystroke. I''m not sure if > the functionality removed recently is available in generator form, though. > No big loss if it isn''t.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
michael.hasenstein@googlemail.com
2010-Apr-12 15:52 UTC
Re: error_message_on etc. removed - what''s the rationale?
I take back what I said, everything is okay. On Apr 12, 5:39 pm, "michael.hasenst...@googlemail.com" <michael.hasenst...@googlemail.com> wrote:> I was also asking because I don''t seem to have any error messages on > the model object right now... (didn''t verify it by checking rails code > yet, busy with other stuff)-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Mislav Marohnić
2010-Apr-12 17:54 UTC
Re: Re: error_message_on etc. removed - what''s the rationale?
To clarify: this is the commit I had in mind "Remove input, form, error_messages_for and error_message_on from the framework." http://github.com/rails/rails/commit/cd79a4617421f1b66e905f5da84ff28004e2bedd -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.