search for: enhancing_rails_error

Displaying 5 results from an estimated 5 matches for "enhancing_rails_error".

Did you mean: enhancing_rails_errors
2006 Apr 22
4
How to supress field name in error message?
Hi How do I supress the reporting of a field name in the full error message? I want the error to be associated with the field so that the .fieldWithErrors class is applied to the field but I don''t want it to add the field name to the actual error message. For example: errors.add("occurs_on", "The date can''t be today!") unless occurs_on != Date.today I
2006 May 19
3
Change Error messages
Where may i change the default error message for validating a form ? And the box error title, please : "1 error prohibited this stagiaire from being saved" thks -- Posted via http://www.ruby-forum.com/.
2006 Jan 27
0
Plugin - Redefining Numericality
.../01/27/defining-numericality PS: Sorry for hijacking threads with my other announcements. I didn''t realize the effect of hitting reply-to and changing the subject line. So if you missed my last plugin announcement, you can find it here: http://www.railtie.net/articles/2006/01/26/enhancing_rails_errors Bob Silva http://www.railtie.net/ -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060127/0c233b62/attachment.html
2006 Jan 26
21
pagination_links help
I want append custom query parameters to my pagination links, like ?page=1&foo=bar. I can''t quite figure out how to do this with the pagination_links helper, although I believe the API says you should be able to: pagination_links(paginator, options={}, html_options={}) options are: :params: any additional routing parameters for page URLs Has anyone tried this? thanks, jeff --
2006 Apr 09
12
Validating two models from one form
Howdy, I''m working on my first RoR project, and I want to build a form. The tricky thing is, this form needs to insert / update against two models, each with their own validation rules. Unfortunately, I''m having an incredible amount of difficulty with the error handling, specifically the fields wrapped in <div class=''fieldWithErrors''></div>