Proble wuth form

Hey,

Please refer to correct usage of form_for: API: http://api.rubyonrails.org/classes/ActionView/Helpers/FormHelper.html with examples: http://apidock.com/rails/ActionView/Helpers/FormHelper/form_for

Jose vicente Ribera pellicer wrote:

I tried with:

form_for [@encuesta, @pregunta] do |f|   <%= f.error_messages %>

   <p>      <%= f.label :texto %><br />      <%= f.text_field :texto %>    </p>     ...   end

The result is the same. I thinking that perhaps i can0t do "restful" forms :frowning:

Solved!!

<% form_for(@pregunta, :url => encuesta_preguntas_path(@encuesta)) do

f> %>

It rules!!