Regards
Thomas
I am wondering what you mean with "insert them in my model"?
In wich model? Picture model? Or another model (I dont think you want to store a picture twice.)?
Do you rather mean rendering the images in a view?
Normally you want to render a page with its nested elements.
These elements might contain images as contents.
For this, you firstly have to prepare the elements.yml for your picture element.
Then you should generate your element via the rails generator: "rails g alchemy:elements --skip".
You'll get two partials for this element, with some code for rendering the images.
If I didnt understand correctly, please try to describe your situation a bit more.
bye
Robin
This is more Rails specific then alchemy specific, but I'll explain:
Getting all Pictures from Library:
Picture.all
Assigning a picture to one of your models you should have something like a picture_id column.
Then you just assign a Pictures#id to your model. Or, if you want to have more then one picture make a habtm table to have a m to n connection.
You see, their is not much magic in there. Just basic Rails stuff.
I hope I could help.
Don't hesitate to ask more questions.