Re: display optional db data

Sharagoz
2010-04-15T19:18:32Z

The logic for this probably belong in view helpers and not in the
model since its really about how the data is displayed and not about
how the data behaves.

On Apr 15, 8:05 pm, dan
<mr.dan.ma...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
wrote:
> could someone perhaps advise on how to move some of this logic from
> view to model?
> like ''get_price_info'' and it returns the properly
formatted string or
> nothing?
> or should these tests be performed in the view?

--
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
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe@googlegroups.com.