8
Nasıl html formatına değil json'a yönlendirebilirim?Raylar: redirect_to için json formatını ayarlama
böyle smthing istediğiniz:
redirect_to user_path(@user), format: :json
Ama bu işe yaramazsa, hala yolunu html yönlendirildi.
bu format.js aslında olsa yönlendirme sayfası gelmez yanıtı talep dahilinde yapılırsa, sadece tarayıcı zaman uyumsuz html gönderir. Tek yol bu mu? Http://stackoverflow.com/questions/18629811/rails-redirect-to-format-html-sends-response-in-js – ajbraus