Displaying 2 results from an estimated 2 matches for "classified_categori".
Did you mean:
classified_category
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 li...
2008 May 09
0
NoMethodError in ClassifiedController#update
My project was working when I add new field category
It is showing the error in create form and edit form
i am sending u controller file as attechment
this is my model(category.rb) dor category file
class Category < ActiveRecord::Base
has_many :classifieds
end
and this is edit.rhtml
<h1>Editing Classified: <%= @classified.title -%></h1>
<%= form_tag :action =>