search for: less_than

Displaying 6 results from an estimated 6 matches for "less_than".

2008 May 17
12
validates_numericality_of with greater_than* less_than* simply don't work
It seems that the validations for: greater_than greater_than_or_equal_to less_than less_than_or_equal_to equal_to odd even Simply do not work (Rails 2.0.2). I''ve tried every combination I can think of and these never seem to fire. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby o...
2007 Nov 03
3
Birthdate validation
...d agree with the Aykall Policies before signing in." validates_multiparameter_assignments :message => " is not a valid date." age_limit = Date.new(Date.today.year, Date.today.month, Date.today.day).change(:year => Date.today.year - 18) validates_numericality_of :birth_date, :less_than => age_limit, :message => "is invalid. You have to be at least 18 years old to sign in." end I''m getting the error message "undefined method `change'' for #<Date: 4908815/2,0,2299161>" but, honestly, I don''t know what else to try. Can anyo...
2010 Nov 18
0
max_allowed_packet mysql
Hi I am using rails 2.3.8 with mysql 5.1. In my attachment model the validation was validates_attachment_size :attachment, :less_than => 2.megabytes, :message => "Upload file size should not exceeds 2 MB" And my /etc/my.ini has max_allowed_packet = 16M The above worked perfectly. But now I need file limit size as 10 MB instead of 2 MB. So I changed validation like validates_attachment_size :attachm...
2012 Aug 18
2
Paperclip images are not stored in my directory
...quot;60x60>" }, :url => "/assets/users/:id/:style/:basename.:extension", :path => ":rails_root/public/assets/users/:id/:style/:basename.:extension" validates_attachment_presence :photo validates_attachment_size :photo, :less_than => 5.megabytes validates_attachment_content_type :photo, :content_type => [''image/jpeg'', ''image/png''] Please advice me... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to th...
2005 Mar 14
2
Has anybody experience with SetGroup / CheckGroup commands?
I am checking on the SetGroup / CheckGroup commands, but I have some troubles to undestand the examples. SetGroup(moh) can be moh anything as I like? Usually moh stands for "music on hold" CheckGroup(1) checks if somebody in in group "moh". Does it mean I can only have one SetGroup(xxx) ?? When I look at example 2 than I see two SetGroup commands and one CheckGroup
2007 Aug 31
48
Deprecating the mocking framework?
I saw in one of Dave C.''s comments to a ticket that "our current plan is to deprecate the mocking framework." I hadn''t heard anything about that, but then again I haven''t paid super close attention to the list. Are we planning on dumping the mock framework in favor of using Mocha (or any other framework one might want to plug in?). Pat