Hello,
I have the following rails 3 nested resource:
resources :books do
resources :authors
end
My authors table has ID | name | book_id
Given I'm at the URL /books/312/authors/new
How do I structure the controller, so that I create a new Author assigned to a book
@author = Book.author.create.(params[:author])
What should the Authors Form new look like?
<%=form_for [Book, Author.new] do |f| %>
thanks