On Sat, Feb 1, 2014 at 10:22 PM, Bizt <
marty...@gmail.com> wrote:
> I've been trying to set default URL parameters in the controller, which will
> also be used within the view.
> ... so I was wondering what the best practise is for handling this.
Personally, I'd say "best practice" is "don't do that" :-)
Instead of passing raw params to a view, build your model object
(or a service object) with them and pass that in. And if you need
defaults for missing attributes specified, the model/s.o. would be
a better place for them.
FWIW,
--
Hassan Schroeder ------------------------
hassan.s...@gmail.com
http://about.me/hassanschroeder
twitter: @hassan