On Sat, Jul 21, 2012 at 3:54 AM, Cortomix aa <[email protected]> wrote:

> One of the things that has surprised to me, after I've read some books,
> it's that classes hasn't got attributes; the attributes are in the files
> db/migrate/*. After that, the ORM makes the mapping with de Database.
> But the attributes aren't in the files app/models/*.

Not all classes in a Rails app inherit from ActiveRecord::Base :-)
And you can have attributes that come from mixed-in modules. It's
not all about an ORM mapping.

> It's difficult to me see the class without attributes; in Java is
> different. Is there anything bad in this idea?

Sorry, I'm not sure what you're asking.

-- 
Hassan Schroeder ------------------------ [email protected]
http://about.me/hassanschroeder
twitter: @hassan

-- 
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 https://groups.google.com/groups/opt_out.


Reply via email to