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--------------
listes des conceptes existants pour le client actif:
<%= start_form_tag (:action =>"save_list")%> <%= render(:partial => "variation", :collection => @variations )%>
<input type="submit" value="Sauvegarder" />
<%= end_form_tag %>
-----------LIST.RHTML-------------
with this partial:
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 %>
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!