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
<p><%= text_field :testo,relation.id.to_s %></p>
<% else %>
<p><%=text_field:testo,relation.id.to_s,value=>j.notes%></p>
<%end
end%>
<%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.