Displaying 2 results from an estimated 2 matches for "document_categories".
2007 Nov 24
0
Listing documents in two different controllers - refactor?
...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 get a list of all documents in the list action. The correct
way I think would be to get the filtered documents by category in the
document_categories/show/2. Also, document_categories/list would show
a list of document categories and not documents, right?
The point here is that I think that this is not dry since I have two
actions in two different controllers that lits documents - one all and
the other filtered. Of course I could have some kind...
2006 Aug 02
2
Ajax_Scaffold display from link table
Hi,
Ive followed the pets/people ajax_scaffold example without any problem.
I have a table documents and each document has a category. In the
documents table i have a field called category_id. So in the documents
grif i want to display the corresponding catgory name and when it comes
to adding a new category or editing the have a drop down list to select
from.
category.rb
require