Hi I have a table called active
and another one called authreg
I did a one to one relation but it turns out that one of this legacy
database
column name has an hyphen!!! "-" now im screw how can I tell rails
to use it? or make an alias of some sort like with table names.?
@active = Active.new(
:collection-owner => authreg.username,
:time => "1207840612")
Thanks
--
A Spectre is haunting multinational capitalism--the spectre of free information.
All the powers of ``globalism'''' have entered into an unholy
alliance to exorcize this spectre:
Microsoft and Disney, the World Trade Organization, the United States Congress
and the European Commission.
Eben Moglen from the FSF.
http://emoglen.law.columbia.edu/publications/dcm.html
Solidarity:
http://www.dailyradical.org
http://www.diarioradical.org
http://www.spboston.org
http://www.binaryfreedom.info
--~--~---------~--~----~------------~-------~--~----~
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
rek2 wrote:> Hi I have a table called active > and another one called authreg > I did a one to one relation but it turns out that one of this legacy > database > column name has an hyphen!!! "-" now im screw how can I tell rails > to use it? or make an alias of some sort like with table names.? > > @active = Active.new( > :collection-owner => authreg.username, > :time => "1207840612") > > > Thanks > >nevermind I used ''coolection-owner'' => and that seems to do the trick! -- A Spectre is haunting multinational capitalism--the spectre of free information. All the powers of ``globalism'''' have entered into an unholy alliance to exorcize this spectre: Microsoft and Disney, the World Trade Organization, the United States Congress and the European Commission. Eben Moglen from the FSF. http://emoglen.law.columbia.edu/publications/dcm.html Solidarity: http://www.dailyradical.org http://www.diarioradical.org http://www.spboston.org http://www.binaryfreedom.info --~--~---------~--~----~------------~-------~--~----~ 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---