Displaying 2 results from an estimated 2 matches for "useroption".
Did you mean:
user_option
2008 Dec 11
1
Meetme realtime table structure
Hi guys,
Sorry if I'll be very very stupid but really I write to this conference first.
I have problems with configuration of app_meetme in realtime environment.
I use last stable release of asterisk 1.6.0.3
Now situation is following. I create database and table in it. Th table is
CREATE TABLE IF NOT EXISTS `booking` (
`bookId` int(10) unsigned NOT NULL auto_increment,
`clientId` int(10)
2006 Jul 28
2
ActiveRecord design question
...ble. The problem is that I will
probably have a lot of user set options. I did not want to add 20-30
fields to the user table so I created a user_options table:
===============================
class User < ActiveRecord::Base
has_many :user_options
end
===============================
class UserOption < ActiveRecord::Base
belongs_to :user
end
===============================
Unfortunately this does not give me what I want. My problem is the
following: I would like to be able to reference the user_options like
this:
user = User.find(:first)
user.user_options[:key] => this would retu...