Displaying 6 results from an estimated 6 matches for "born_on".
Did you mean:
bordon
2006 Jan 05
13
Date Validation
Hi,
How can I validate date in model class
Thanks.
Sainaba.
--
Posted via http://www.ruby-forum.com/.
2013 Feb 19
4
Float::INFINITY ranges in where() clause
This seems like such an obvious idea that I''m having trouble believing
I''m the first to think of it. Why not take ranges containing
Float::INFINITY and translate them to the appropriate greater than or
less than comparisons? Example:
class Person
scope :voters, -> { where(born_on: (-Float::INFINITY..18.years.ago)) }
end
This would generate something along the lines of "WHERE people.born_on
<= ''1995-02-19''".
A proof of concept implementation was easy to knock out:
https://github.com/tpope/rails/commit/b98545a930546854ddf401edfaad4a3a4860a...
2008 Mar 12
3
Some random rails, and maybe Ruby, questions..
Hi,
I''m attempting to create a users statistics controller, and have saved
up some questions regarding this for this post.
So, please comment on any one of them, if not all :-)
1) Is there a library somewhere for doing stats? (e.g. mean, median,
sd, skewness..) on an array in rails?
2) What library would you recommend for "publication ready" (i.e. not
cheesy) histograms,
2006 Apr 20
4
Small Date Formatting Question regarding datetime_select()
Is there a way to make datetime_select() dropdowns work on a 12hr
clock? I need to make a input field that works exactly like the
reminders datetime selecton dropdowns in Backpack to populate a
datetime field in my DB. i.e in the format: month, day, year ? hour
(1-12) minute am/pm. Should I change my database to have a separate
column for date and one for time and use date_select()?
Can
2006 Apr 23
5
Controllers in folders and helper scope in Rails >1.0
Hi,
Here''s my problem. I tried to google it, read the release-docs and
haven''t found anything similar.
My application uses folders to store controllers, as described in the
Rails book. I need to have same-named controllers for admin and for
users, so it looks like this:
/app/controllers/admin/project_controller.rb
/app/controllers/admin/...
2012 Nov 23
23
Puppet 3.0 Puppet labs repo package problem on rhel5
...RFC 4627 in Ruby.
You can think of it as a low fat alternative to XML,
if you want to store data to disk or transmit it over
a network rather than use a verbose markup language.
[root@rhel5build-10wa ~]# puppet agent --test
Info: Retrieving plugin
Info: Loading facts in /var/lib/puppet/lib/facter/born_on.rb
Info: Loading facts in /var/lib/puppet/lib/facter/facter_dot_d.rb
Info: Loading facts in /var/lib/puppet/lib/facter/puppet_vardir.rb
Info: Loading facts in /var/lib/puppet/lib/facter/root_home.rb
Info: Caching catalog for rhel5build-10wa
Info: Applying configuration version ''1353708172&...