Hi,
here is my situation. I have this controler action:
---------CONTROLER--------
def list
@variations = Variation.find(:all,
:conditions =>["client_id = ?",
@active_client.id]
)
end
---------CONTROLER--------
Which call this view (removed irrelevant parts):
----------LIST.RHTML--------------
<p>listes des conceptes existants pour le client actif:<p/>
<%= start_form_tag (:action =>"save_list")%>
<%= render(:partial => "variation",
:collection => @variations )%>
<input type="submit" value="Sauvegarder" />
<%= end_form_tag %>
-----------LIST.RHTML-------------
with this partial:
<p> concept:<%= h(variation.concept.name) %>
variation francaise:<%= text_field "variation",
"text_fr","index" =>
variation.id %>
variation anglaise:<%= text_field "variation",
"text_en","index" =>
variation.id %>
</p>
*************
using the previous code, I can update the database but when I call the
LIST page the fields arent updated with the default value from
@variations. why?!?
Thanks a lot for the help!
--
Posted via http://www.ruby-forum.com/.