Topic: simple question about models and loading child records from a list
I have two models that look like this:
class Mail < ActiveRecord::Base
class Picture < ActiveRecord::Base
when I want to show a single mail with it's pictures, I do this:
@mail = Mail.find(params[:id])
but when I try to load into a list of mails, I can't get it to load its pictures like this:
it seems that if the first way worked, that this second way should also work. Sorry for these simple questions.