search for: author_controller

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

2006 Jan 05
1
recipes/categories to books/authors but listing doesn''t work
...k_to book.title, :action => "show", :id => book.id %></td> 17: <td><%= book.author.last_name %></td> 18: </tr> 19: <% end %> 20: </table> but as far as I can tell I have done the right things in the controllers, models and views: author_controller.rb: @authors = Author.find :all, :order => ''last_name, first_name'' book_controller.rb: @books = Book.find :all, :order => ''title, back'' author.rb: has_many :books book.rb: belongs_...
2006 Apr 05
13
scaffold misuse?
Running ruby script/generate scaffold Product Admin is a wonderful way to set up well, exactly what it says, a scaffold. My problem is that I have several other tables that are linked, through foreign keys, to the Product table. Say an "authors" table. Now when I go enter a new product, a book, I want the application to provide a drop down list of authors generated from the records in