search for: document_category

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

2007 Nov 24
0
Listing documents in two different controllers - refactor?
Hello, if I have a document model (not RESTful) that belongs_to document_category and a document controller with a list action, and I want to list document per category can I just pass the id of the category as the :id GET param of the list action and filter the documents for this category? I think that that this wouldn''t be semantically good since one would expect to...
2006 Aug 02
2
Ajax_Scaffold display from link table
...umn.new(self, { :name => "location" }), AjaxScaffold::ScaffoldColumn.new(self, { :name => "Cat", :eval => "document.category.name", :sortable => false }) ] end _form.rhtml <div class="form-element"> <label for="document_category">Category</label> <%= select ''document'', ''category_id'' , Document.find_{[p.id ] } %> </div> documents_controller.rb @paginator, @documents = paginate(:documents, :order => @sort_by, :include => :category, :per_page => default...