lml / quadbase

Quadbase.org - Question Banking Made Easy
quadbase.org
Other
18 stars 11 forks source link

Image tag in answer_choices #139

Open joelbaranowski opened 12 years ago

joelbaranowski commented 12 years ago

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

jpslav commented 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

joelbaranowski commented 12 years ago

See imagemiss pull request.