On Feb 2, 6:40 am, Grant Gray <[email protected]> wrote:
> Frederick Cheung wrote:

> > That's weird - Why are you not calling set_table_name /
> > set_primary_key on some subclass of ActiveRecord::Base ?
>
> > Fred
>
> Hi Fred,
>
> I dont understand what you mean? Can you elaborate? I had it working
> before under the controller and model and it worked. Has something
> changed that I should know about?
>

The normal way of doing this is

class OdmaUnit < ActiveRecord::Base
  set_table_name "odma_unit"
  set_primary_key "device_id"
end

Fred

> Thanks
>
> Gigg
> --
> Posted viahttp://www.ruby-forum.com/.

-- 
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.

Reply via email to