Displaying 1 result from an estimated 1 matches for "admin_book_path".
2013 May 23
1
problem of respond_with working on nested resources
...me problems and the @book is not saved, the function
should render new action, hence we can get error messages, but now it
render index action. and the log file said it got a error 302. if I replace
''respond_with [ :admin,@book]'' with ''respond_with
@book,:location=>admin_book_path(@book)", it works fine.
should we not use "[:admin,@book]" way with respond_with?
thanks
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send...