Hey guys,
I'm pretty new to rails, so I apologize if this question has an obvious answer.
I have multiple controllers with records stored based on relations
for example, /books/1/titles/4
meaning the the title with ID 4, is only related to book with ID 1.
in an action such as destroy, how can I use redirect_to to go to /books/1/titles?
format.html { redirect_to :controller => 'books/:id/titles' , :action => 'show', :id => @book}
didn't work
Thanks in advance!