Displaying 1 result from an estimated 1 matches for "authorscontroller".
2008 Dec 05
3
2 forms in one page,how to arrange the code and do it restful?
...uthor search form a partial template and
locate it under folder "views/documents" too, put the search_author
method in DocumentsController.this really works,but it break the REST
rules, how could i write the url for search_author method?
I think the search_author method should be write in
AuthorsController.If I do this, i can not get the search result
@authors from AuthorsController.
Solution2:
It seem that the document belongs to the author. so i use the nested
resources and add this line in route.rb
map.resources :authors,:has_many=>:documents
but this require that every operation on document s...