I have a column name that has a hyphen… not the table name but column
name…
I am calling something like:
@online = Status.find(:first, :conditions => {:status => ‘online’} )
first problem I notes using the IRB console
is to be able to get information out of the array I need to specify with
element
like
@online[0].status
this works… but I was hoping to just use @online.status
but anyways my problem is with hyphens…
I can’t do this:
@online[0].collection-owner
it just wont work I try with ‘’ “” and `` around it… as well with #{}
hehe just in case…
any suggestion? thanks.