object - Query tables imported via Rails gem -


i have gem (active_nutrition) has imported bunch of tables database. gem comes methods , such getting information imported tables easily.

however, want query info tables, because it's gem, can't seem query.

for example,

classname.all() give me error

nomethoderror: undefined method 'all' activenutrition::objects::classname:class

so, possible query despite tables coming gem?

edit:

the class gem looks this:

    module activenutrition        module models          class classname < activerecord::base 

also, specific query made weight.all()

edit:

i think figured out. don't think rails likes composite id's, weight table in particular uses. of other tables have own id's, can query them fine.

so, of other tables appear models, weight appears object.

any class extends activerecord::base can use method all, find, , others.

i advise source - the following classes extends activerecord. maybe querying wrong class?


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -