Displaying 4 results from an estimated 4 matches for "shawn_garbett".
2005 Nov 28
4
validates_format_of nil
I''ve noticed that validates_format_of will return invalid if the field
is nil.
Question 1) How should we declare a validation that will validate it
with a regex if it is set, but, if the field is not set, just move on
Question 2) Why is it done this way? The other validators are only
invoked if the field is set . If you want to declare the field
mandatory, you add a
2006 Feb 10
0
Partitioned Index
I have the following problem, a legacy Oracle database
with partitioned indexes. Every single table has a
column that specifies the partition. So my current
thinking is to add a route section to the url that
specifies the partition (this also makes business
sense-- it''s the way URLs are currently formed). Next
make a modification to the ActiveRecord, and a lib
that for all selects,
2006 Feb 10
1
Timezone problem
Okay I have a database with all timestamps stored in
GMT, but each customer (who''s timezone is known),
wants all data and query done in their timezone. So
presentation is the standard offset and where clauses
subtracts the offset.
Could this be done as an extension to active record
such that all queries automatically adjust dates to
the timezone of the customer?
Shawn
2006 Jan 31
0
Structuring customizations
I''ve got a large project that I may be able to convert
to rails. The problem domain is a bit odd for most web
projects:
1) There is a single data model.
2) Each customer (~50), wants customizations to their
web pages.
3) 90% of the product is the same.
4) There are several components to the product.
5) Not all customers pay for each component.
If I use rails and create a