search for: books_list

Displaying 1 result from an estimated 1 matches for "books_list".

Did you mean: book_list
2006 Apr 05
3
CRUD pattern for has_many relationships (forms containing collections)?
...t_field_tag "books[#{book.id}][title]", book.title %></p> ...an authors/_form.rhtml partial <%= text_field "author", "name" %> <%= link_to_remote "Add book", :url => {:action => "add_book"} :update => "books_list" %> <div id="books_list"> <%= render :partial => "books/book", :collection => author.books %> </div> ...and in authors_controller.rb def new session[:books] = Array.new end def add_book book = Book.new(:title => "untitled&q...