Hi,
Pretty new to rails. Am doing a simple book store application. We have different subject areas like physics, chem, philosophy, etc...Each subject area has some books under it. The url ending with book/list will list all books irrespective of subject areas. The subject areas also appear in the same page as hyperlink. The url ending with book/show_subject/<subject id> lists all the books with that subject id. So I click on the subject if I want to see the books belonging to that subject area. The book/list page does have a hyperlink to a page where we can add new books (book/new).
Suppose if there are no books for that subject (say physics), I display a link saying would you like to add books here? Clicking on that it takes me to the page where I enter the book info + the subject area the book belongs it (book/new). I have a drop down for the subject area...how do I configure this drop down to show up physics initially, (since I navigated to this page after noticing that there were no physics in the store).