I have a basic question. I've been working with Rails for a couple
months now, and I've read the O'Reilly book on it, but once I started
making a basic sized application, it seems like my main model "List" has
waaay too much code, and I want to break it down into classes and
subclasses.
Most of the code in "List" is for HTML parsing, so as a first step, I
would want to make a class "Parser" that is accessible to "List."
But I have so many questions about how to create this new class:
Where do I put "Parser"?
- In "List" as another class?
Is OOP in Rails only centered around database objects?
- Would I have to make a "Parser" model?
- Even if there's no DB table for "Parser"?
Is there any guide to Rails best programming practices?
Thanks,
David
--
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
-~----------~----~----~----~------~----~------~--~---