Bonjour, J'ai les modèles suivants Child has_many :fosters Bed has_many :fosters Foster belongs_to :child belongs_to :bed Dans le formulaire bed/edit je souhaite afficher la liste des fosters et pour chaque foster, le child concerné. avec un quelque chose du genre : <% f.fields_for :fosters do |builder| %> <%= builder.label :child_name %> <%= builder.text_field :child_name % <% end %> Je ne parviens pas à afficher child.name
on 2010-04-01 16:12
on 2010-04-01 16:39
Le 01/04/10 16:12, Guillaume J. a écrit : > Foster > > Je ne parviens pas à afficher child.name As tu bien un accepts_nested_attributes_for sur fosters dans bed ? -- Martin Catty || fuse http://www.noremember.org http://www.synbioz.com -- Vous avez reçu ce message, car vous êtes abonné au groupe "Railsfrance" de Google Groups. Pour transmettre des messages à ce groupe, envoyez un e-mail à l'adresse railsfrance@googlegroups.com Pour résilier votre abonnement envoyez un e-mail à l'adresse railsfrance-unsubscribe@googlegroups.com To unsubscribe, reply using "remove me" as the subject.
on 2010-04-01 17:07
Martin Catty wrote: > Le 01/04/10 16:12, Guillaume J. a �crit : >> Foster >> >> Je ne parviens pas � afficher child.name > > As tu bien un accepts_nested_attributes_for sur fosters dans bed ? Yes sir
Please log in before posting. Registration is free and takes only a minute.
Existing account
(Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
Log in with Google account | Log in with Yahoo account
No account? Register here.