there is a controller action
book = Book.find_one_book_that_left #find a book haven’t read
book.update_attribute(“is_read”,true) #mark it as read
@result = book.read #fetch book content
When this action is called,I want the @result be shown on the browser,
then AFTER the @result is shown, I want it call this action again and do
the same thing to show next book.
I’ve tried redirect_to method, but it won’t give the chance to show
anything on the browser before it redirect the action.
Any idea to do this?