Just a guess but maybe it will work if instead of self. you use
Vehicle. when defining the method:

Vehicule.get_vehicule(...)

Pepe

On Sep 17, 8:34 am, Rémi Gagnon <[EMAIL PROTECTED]>
wrote:
> Christian Rishøj wrote:
> > I recall having a similar problem. I believe I got around it by
> > overriding the table_name method on the class, e.g.:
>
> > class Vehicule < ActiveRecord::Base
>
> >  def self.table_name
> >   "table_a"
> >  end
>
> > end
>
> > Christian
>
> > On Thu, Sep 11, 2008 at 7:15 PM, R mi Gagnon
>
> Thanks for the response. But it does not seem to work.  I have the same
> problem.
>
> any other ideas?
> --
> 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 rubyonrails-talk@googlegroups.com
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