On Wednesday 17 June 2009, Älphä Blüë wrote:
> Michael Schuerig wrote:
> > On Wednesday 17 June 2009, Fernando Perez wrote:
> >> instead of 100 different places.
> >
> > That would be a job for either helper methods or partials.

> From my understanding, helpers were designed for markup with views. 

Well, the question *is* about views.

> I don't see this as being tied to that unless the login box was
> wrapped in a particular div style or box that is being called on
> multiple views. In this case, then yes, absolutely - helpers would be
> a good thing to use.
>
> From what I've researched and read, if the helper file contains
> non-markup code, it should be moved to the model.

If that was the case there ought to be some good reason for it. I don't 
see any. Go ahead and use helper methods (and presenters, for that 
matter) to extract and bundle common functionality. Don't bother the 
model with view concerns.

Michael

-- 
Michael Schuerig
mailto:[email protected]
http://www.schuerig.de/michael/


--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to