Hi
I knew that Rails3 no longer supporting link_to_remote.... instead of that we can modify the link_to method by using different syntax as follows :
link_to "Send",{:action =>"send_mail",:question_id =>question.id},:remote => true,:class =>"button small"
My problem is, in my view i keep the select box which contains the list of user's name near by send link button (which user the above syntax)... i want to pass the selection box value to link_to when user click the send button
Here is my View code :
<%= select :user,:id,User.order('login asc').collect{|p| [p.login, p.id]}%>
<%= = link_to "Send",{:action =>"send_mail",:question_id =>question.id,:user_value =>encodeURIComponent($F('user_id'))},:remote => true,:class =>"button small" %>
I don't know how to achieve this ....can any one please suggest me on this.