And actually, it is used in my controllers as well :)

Den söndagen den 3:e februari 2013 kl. 13:23:28 UTC+1 skrev Linus 
Pettersson:
>
> Hi!
>
> If I have a method that is useful in both models and in views, where would 
> be the appropriate place to put it?
>
> The method in question just takes two dates as strings, tries to parse 
> them and returns all dates in the range between them. It also takes care of 
> the issues when the dates are badly formatted etc etc..
>
> This method is being used in several models (so a simple class method in 
> one model doesn't seem appropriate) and also in some view helpers.
>
> So, where does this method belong in rails?
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msg/rubyonrails-talk/-/2uIc97s6-nUJ.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to