On Jan 13, 2008, at 2:00 PM, Xavier Noria wrote:

>
> I think it would be expected to emulate what's done with
> ApplicationController. That is, the rails generator would write
>
>    app/models/application_model.rb
>
> with something like
>
>    class ApplicationModel < ActiveRecord::Base
>      # Stuff common to your models comes here.
>    end
>
> and the model generator would output something like this
>
>    class User < ApplicationModel
>    end
>
> Active Record would understand ApplicationModel is abstract as a hard-
> coded builtin assumption.
>

yep that's a start.  i'd personally push harder though - i would love  
to run rdoc over my rails app and see sections for

   Application::Controller

   Application::Model

   Application::View

   Application::Config

   Application::RubyExt

etc.  the rails structure is currently a tree without a root -  
without a single entry point or logical 'top' - add to that the  
beautiful and dangerous fact that you can hack any class anywhere and  
you end up with a mess.  the current structure organizes mvc, but not  
applications imho, either logically or physically.  helpers might be  
the only exception, but of course they are simply procedural in  
nature having no state to leverage and not a wide enough domain.

kind regards

a @ http://codeforpeople.com/
--
we can deny everything, except that we have the possibility of being  
better. simply reflect on that.
h.h. the 14th dalai lama




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" 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-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to