marimarps / etiquetAR

3 stars 0 forks source link

Relating Resources & QRs #1

Open marimarps opened 12 years ago

marimarps commented 12 years ago

Currently, there are resources and QRs. However, we need to create the relations between the Resources and the QRs. A resource is always associated to a QR. When creating a QR, there it is created a Resource by default that corresponds to the value used to generate the QR image.

marimarps commented 12 years ago

It should be included a form to create the REsources:

zenitraM commented 12 years ago

QRs now automatically create an empty resource, which can be edited on the QR new/edit form.

Still todo:

zenitraM commented 12 years ago

also, now @qr.default_resource is a method that returns the URI for the first resource instead of being just a field on the QR model. (so the views still work as they did).