if thing.foo is a date, price, url or something else that requires formatting, it requires more than =thing.foo and since you cant format nil, a test needs to be performed before trying to format said data my views are getting littered with these tests and formats, sometimes there nested: is there price data? is there an advance purchase price? is there an advance purchase expiry date?
its getting kinda ugly in my view whats the best way to handle this? -- 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.

