2009/7/28 Rob Biedenharn <[email protected]>:
>
>
> On Jul 28, 2009, at 12:43 PM, Colin Law wrote:
>
>> Is there another way using some sort of alias on the column name as
>> the OP suggested? I have a legacy db with a column called action and
>> suspect that this may cause me some problems at some point. Maybe it
>> will not however.
>>
>> Colin
>
> If it's because you see "action" in this page:
>
> http://wiki.rubyonrails.org/rails/pages/ReservedWords
>
> (or a similar one), then it is probably within a controller. You
> shouldn't have problems with 'action' as a column/attribute name on a
> model.
>
I admit I have not run into a problem yet, I suppose I am concerned
that something like :conditions => {:action => value} might confuse
the system. I suppose if it did I could avoid the use of :action by
using ['action = ?', value] instead.
I will not worry unless it becomes a problem. Thanks for the help.
Colin
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---