When I try to run this command I got a table does not exist.
Vehicule.get_vehicule(123,1123)
class Vehicule < ActiveRecord::Base
set_table_name "table_a"
def self.get_vehicule( inte_no, poas_no)
find_by_inte_no_and_poas_no( inte_no, poas_no)
end
end
It looks like if you have a custom method in your model, the
"set_table_name" is not taken as the real table name. As soon I rename
my model the name of the table(which is not what I want) the
get_vehicule worked.