On Thu, Apr 15, 2010 at 11:05 AM, dan <[email protected]> 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?
I'm not sure what you're looking for here; if you have a view with e.g. <%= @thing.foo %> and this particular "foo" is nil, nothing will display, otherwise you get the value of "foo". If that's not the behavior you want, please describe in more detail. -- Hassan Schroeder ------------------------ [email protected] twitter: @hassan -- 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.

