search for: app_models

Displaying 2 results from an estimated 2 matches for "app_models".

2010 Sep 17
6
Rails base model
...''m coming from PHP and CakePHP. I would like to create a base model from which all other models will inherit from. I have done this: class AppModel < ActiveRecord::Base end and class Post < AppModel end I''m getting the following error: Table ''blog_development.app_models'' doesn''t exist My question is, how do I tell Rails not to look for a table named "app_models" AND am I even taking the right approach here? Is there a better way to do this? -- You received this message because you are subscribed to the Google Groups "Ruby on Rai...
2006 Mar 23
4
how to put the model class in module?
I meet a strange problem. I have a table name is application. So I have to use Application as the model class name. But it reports error. If I put the model class into my special module and require the file in controller, it works. But I find that all predefined methods in Active Record are no longer effective, such as validate and so on. Can you please give me some idea on this problem? Thanks .