search for: length_of

Displaying 3 results from an estimated 3 matches for "length_of".

Did you mean: length_op
2006 Jul 16
4
migrations questions: MySQL -> postgreSQL
...e data from db The form entry fields are all defined as varchar(n). The largest is about 80 characters. MySQL truncates any entry. With migrations, my understanding is that the fields get declared as string. So it looks like, at a minimum, moving to migrations is going to make me put validates_length_of on every text_field in every model to protect against SQL injection. (I already escape all text output in the views) Is my understanding about migrations using string, and the correllated assumption re" length_of validation correct? Just how ''easy'' do migrations make it to...
2012 Aug 14
3
validates_format_of :message not working, validates_length_of :message is working
...but I can''t get an error message to be displayed if the data is invalid: validates_format_of :mobile, :with => /\A[\+0-9]+\Z/, :message => " - Wrong" I have another validation some where else that does display the error message: " - Name is too long" validates_length_of :name, :within => 5..40, :too_long => " - Name is too long", validates_length_of :name, :within => 1..50, :message => "Broken" *<------ This also works but not for validates_format_of* Any ideas? Thanks. -- You received this message because you are subscrib...
2006 Jan 02
6
Login_engine - auth against email rather that username?
Hi all, Short of hacking the code apart, is there a method making the login_engine authenticate against email address rather than username? I find that people rarely remember usernames, and would prefer to use email addresses as the identifier. Thanks! Tom