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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs