search for: classified_ad

Displaying 1 result from an estimated 1 matches for "classified_ad".

Did you mean: classified_ads
2006 Apr 01
1
Passing a Record as a Parameter
Consider the following code: Snippet from my view.... <% for cc in @classified_categories %> <tr> <td><%= link_to cc.description, :controller =>''classified_ads'', :action => ''list'', :id =>cc %></td> </tr> <% end %> ... end snippet the relevant bit is :id =>cc Snippet from my controller... def list @classified_category = ClassifiedCategory.new(params[:id]) session[:classified_category_id] = @cla...