Open joelbaranowski opened 12 years ago
Good point.
On Jun 19, 2012, at 11:42 AM, joelbaranowski wrote:
When editing a question, if the user provides an image tag which has a bad path (i.e. there is not image associated with it) we get a nil error. Probably want to add a red flash/notice error box.
example: yes {img:nosuchimage.jpg} no
undefined method `asset' for nil:NilClass
Reply to this email directly or view it on GitHub: https://github.com/lml/quadbase/issues/139
See imagemiss pull request.
When editing a question, if the user provides an image tag which has a bad path (i.e. there is not an image associated with it) we get a nil error. Probably want to add a red flash/notice error box. Might want to do something similar to when a variable fails, e.g. =nosuchvar=.
example: yes {img:nosuchimage.jpg} no
undefined method `asset' for nil:NilClass