Disregard ! This is not a bug.
I solved the issue. The origine of the issue was in the controller :
I wasn't instancing correctly @proj_paquet_mesures. Instead it was holding 'nil' value.
This results in form_for behaving like if I called it with :
form_for (:projects, @proj_mesure) do |f|
and the resulting HTML was :
<form id="edit_proj_mesure_1" class="formulaire-standard" method="post" action="/projects/proj_mesures/1" accept-charset="UTF-8">
So to correct the issue, I just had to modify my controller with :
def edit
@proj_paquet_mesures = ProjPaquetMesures.find_by_id(params[:proj_paquet_mesures_id])
unless @proj_paquet_mesures.nil? then
@proj_mesure = ProjMesure.find_by_id(params[:id])
unless @proj_mesure.nil? then
respond_with(:projects, @proj_mesure)
else
render 'blank_page'
end
else
render 'blank_page'
end
end
This is working perfectly :
form_for([:projects, @proj_paquet_mesures, @proj_mesure], :html => {:class => "formulaire-standard"}) do |f|