search for: 889806

Displaying 1 result from an estimated 1 matches for "889806".

Did you mean: 883806
2010 Oct 31
0
Error in rendering json
Hello, in my controller I use following code to render json. render :json => @product, :callback => params[:callback] I would expect (for example) following to be rendered: callback({"name":"Computer","price":500}) Instead, it renders: callback([{"name":"Computer","price":500}]) Notice the square brackets which disables