[Rails] How to access id passed to link_to function in controller?

2010-02-28 Thread Manish Belsare
% if logged_in? and post.match?(post.id) % %= $n = post.id % %= link_to Answer this Query!, :controller = answers, :action = new, :idd = post.id % Hello sir, In the example given above, i am calling a new method to answer the query submitted

Re: [Rails] How to access id passed to link_to function in controller?

2010-02-28 Thread Colin Law
On 28 February 2010 10:36, Manish Belsare li...@ruby-forum.com wrote:  % if logged_in? and post.match?(post.id) %          %= $n = post.id %          %= link_to Answer this Query!,          :controller = answers,          :action = new,          :idd = post.id % Hello sir,   In the