search for: error_messages_on

Displaying 8 results from an estimated 8 matches for "error_messages_on".

Did you mean: error_message_on
2006 Nov 13
1
error_messages_on
With the helper "error_messages_on", if a method, "price", for example, has 2 errors (numericality and presence), how can I access on both errors? Thanks. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Spinoff...
2006 Jan 04
1
[SOLVED] Am I going too far or Rails is just confusing?
...t doesn''t work for me. Following your article, I change my I have found the source of the problem. I follow the solution provided by http://blog.teksol.info/articles/2006/01/03/belongs_to-user-interface-take-ii It''s a nice solution, however it contains typo :) There is indeed no error_messages_on method, instead error_message_on :) You can update your article Francois ;) Tq, John
2006 Jan 03
6
Am I going too far or Rails is just confusing? was {validates_presence_of *_id attributes}
Thanks for the input Blair Zajac and Chris (Nolan and Hall), and for others. If all of you have time, please follow this (the question still relates to the previous posts by me): I have provided full steps to reproduce the symptoms. If it matters, I''m running Ruby 1.8.2, Rails 1.0, and MySQL 5.0.15 on Windows XP Professional. 1. First, the setup MySQL ----- create database testdb;
2008 Jun 02
5
validate - message in the flash[:error]
Hi, I want to show the validate - message in the flash[:error] - field but I can''t find any options. An example: class UserPermission < ActiveRecord::Base validates_presence_of :name, :message => "Please insert a name" ... | end V flash[:error] = "Error - " Has anybody a solution for this
2006 Jan 13
5
Form field naming semantics question
Hi, I have a question today regarding how the various form elements in _form.rhtml are named. I understand that for a database table "persons" with a column headed by "name", then in _form.rhtml it will probably be like: <p><label for="person_name">Name><br/> <%= text_field ''person'', ''name''
2006 Mar 17
0
validations using acts_as_taggable
...act_as_taggable plugin? For example, the tag model has a :validates_length_of :name, :in => 1..30, :too_long => "Tag name too long - max 30 characters", :too_short => "Tag must have a name" If a user inputs a tag longer than 30 characters, how are you displaying the error_messages_on :tag messages? Thanks, Steve http://www.smarkets.net -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060317/c58fbba0/attachment.html
2010 Sep 27
6
Rails 3 + jQuery ; How to show error messages
Hi guys, can anyone explain how to show error_messages_on (like back in Rails 2 , without Ajax) fields that didnt'' pass the validation the jquery way. I googled for about 2 hours now and found nothing. Jquery works fine and adds the content to my table, but im totally stuck with the whole error/validation thing. My form looks like this: <%=...
2008 Feb 27
8
ActiveRecord validation messages not I18N-friendly and enforces grammar
...sh, but may not work in other languages. Furthermore, such messages are not always appropriate even in English. Suppose I want the message to be "Please enter your name". I can''t. Right now I work around this by writing my own show_errors() view helper method (an alternative for error_messages_on()), which only shows the '':message'' part of the errors (i.e. without the field part). In my models I then write: validates_presence_of :name, :message => "Please enter your name." Or, suppose I''m making an application that''s only in Dutch. I put...