I have an author model and a book model.
I'm trying to create a "add new book" link for each author from the
authors index page, that would point to a new book page, with the the
author select field already "selected" to the good option.
the author select in the new book form is created with
I don't know how to pass such a variable in a url using rails url
schema. I've looked in the link_to documentation, but nothing about
this specific case.
any help would be greatly appreciated,
thanks in advance.