> You're looking at it backwards...
>
> You're thinking this:  database table -> rails -> model
>
> The reality is: rails -> model -> database table
>
> Rails will load up all of the files in app/models and assumes by  
> default that there is a pluralized database table to go with each  
> model.  set_table_name changes that assumption.

Wow!  What a revelation!  Thanks a batch.

          ... doug
--~--~---------~--~----~------------~-------~--~----~
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 
rubyonrails-talk+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to