Well I'm a complete N00b to RoR so please bare w/ me but I just discovered this:

ree-1.8.7-2010.02 > ActiveRecord::Base.connection.tables
 => ["schema_migrations", "config", "extension_meta", "layouts",
"page_parts", "pages", "sessions", "snippets", "users", "sites_users",
"hostnames", "sites"]

Woohoo! So there are Hostname and Sites_user models!

ree-1.8.7-2010.02 > Hostname.find_each {|h| p h}
#<Hostname id: 1, domain: "*", port: "80", site_id: 1, created_at:
"2011-02-08 17:07:06", updated_at: "2011-02-08 17:07:06">
#<Hostname id: 2, domain: "www.fleshins.com", port: "80", site_id: 2,
created_at: "2011-02-09 04:24:11", updated_at: "2011-02-09 04:24:11">
 => Hostname(id: integer, domain: string, port: string, site_id:
integer, created_at: datetime, updated_at: datetime)

For some reason I can't get to the Sites_user model though ..

ree-1.8.7-2010.02 > Sites_user.find_each {|u| p u}
NameError: uninitialized constant Sites_user

Now if only I knew where to go next :P

Reply via email to