[ruby-it] Aiuto!
Andrea Reginato
andrea.reginato a gmail.com
Dom 17 Gen 2010 13:24:31 CET
> <% id_giusto= @partecipanti.id_evento %>
> <% nome_giusto= @partecipanti.nome_evento %>
>
> <% form_for(@partecipanti) do |f| %>
> <%= f.error_messages %>
>
> <% :id_evento = id_giusto %>
> <% :nome_evento = id_giusto %>
>
> <p>
> <%= f.label :nome %><br />
> <%= f.text_field :nome %>
> ...
>
Credo che la soluzione al tuo problema sia usare text_field_tag che si
stacca dal modello.
Questo è un semplice esempio.
<%= text_field_tag(''partecipanti[id_evento]", @valore_id_giusto) %>
Tieni presente che "partecipanti[id_evento]" potrebbe variare a seconda di
come gestisci il tutto.
Facci sapere come va
--
Andrea Reginato, http://mikamai.com
Writing http://sensejs.wordpress.com/
Collaborating http://therubymine.it
Reading http://stacktrace.it
More information about the Ml
mailing list