Hi, i'm newbie with rails

i'm try to pass the value of a text_field to the controller without a
submit all form.

this is the html.erb code

 <td>
       <% j = rel_issue.journals.find(:last, !:notes.nil?)
          unless j.nil?
            if j.notes.nil? %>

                  <p><%= text_field :testo,relation.id.to_s %></p>

                <% else %>

                  <p><%=text_field:testo,relation.id.to_s,value=>j.notes%></p>


                <%end
                end%>

  </td>

   <td class="buttons">

      <%if rel_issue.status && !rel_issue.status.is_closed?%>

       <%= link_to_remote(image_tag('link_break.png'),
            {:url => {:controller => 'deda_roadmap', :action => 'evade',
:id => rel_issue.id, :project => @project}},
            :submit => 'testo_'+relation.id.to_s, :method =>
:post,:title => l(:label_evasion)) %>

            <% end %>
                      </td>





and this the controller code:

 def evade
    issue= Issue.find_by_id(params[:id])
   parametro = "testo_"+issue.id.to_s
    testo_nota = params[parametro]
    if !testo_nota.nil?
ecc....


testo_nota is nil in controller and i don't know why.


thanks for help.

-- 
Posted via http://www.ruby-forum.com/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to