Simple Code Organization Question

Hi all,

This is just a quick question about organization of code. I have an app
that is checking domain information via the Yahoo and Google APIs. I
have a model, Domain, that represents the domain I am checking.

My question is where would you recommend I put the methods that access
the APIs, in the model or the controller?

Thanks

Peer

i’d put it into the model, since the model accesses the data, not your
controller (well, it does, but only at model level, the model itself
does
the low-level stuff)

2006/8/16, Peer A. [email protected]:

Thanks

Peer

–
Posted via http://www.ruby-forum.com/.


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

–
Michael S. [email protected]

www.stellar-legends.de - Weltraum-Browsergame im Alpha-Stadium