Skip to content Skip to sidebar Skip to footer

Rails Unknown Format Error (both Html And Js)

I'm currently using Rails 4 and I have 3 controllers that do the following: respond_to do |format| format.html format.js end Two of them currently work just fine, but the thir

Solution 1:

Try changing your parameter name used in user = User.find_by(id: params[:format]) to another name. There should be a problem with Rails parsing request format.


Post a Comment for "Rails Unknown Format Error (both Html And Js)"