Hi Daniel,

Go through this link 
http://stackoverflow.com/questions/937429/activerecordbase-without-table-rails

Where in, answers section you can find an example related to your 
approach.

--
Regards,

T.Veerasundaravel.
http://tinyurl.com/25vma7h
@veerasundaravel


DanielMedia wrote:
> I'm very new to Ruby and to Rails. I'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?

-- 
Posted via http://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