search for: classified_category

Displaying 2 results from an estimated 2 matches for "classified_category".

2006 Apr 01
1
Passing a Record as a Parameter
...> <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] = @classified_category.id session[:classified_category_name] = @classified_category.name @classified_ad_pages, @classified_ads = paginate :classified_ads, er_page => 10 end ... end snippet When I run it, I get the follow...
2008 May 09
0
NoMethodError in ClassifiedController#update
...#39;'classified'', ''location'' %></p> <p><label for="classified_description">Description</label><br/> <%= text_area ''classified'', ''description'' %></p> <p><label for="classified_category">Category</label><br /> <%= collection_select(:classified, :category_id, @categories, :id, :name) %></p> <p><label for="classified_email">Email</label><br/> <%= text_field ''classified'', ''email''...