search for: 13b6ac50

Displaying 1 result from an estimated 1 matches for "13b6ac50".

Did you mean: 136ac580
2013 May 23
1
problem of respond_with working on nested resources
hi all: when using namespace or nested resources in routes.rb,such as "namespace :admin { resources :books }, we can use [:admin,@book] way to generate path. It works fine in form_for , but when I use it with respond_with in controller, I get problems. The problem is when I put following code in controller: def create @book=Book.find(params[:id])