The problem had to do with the respond_to
action.
With an action that has:
respond_to do |fmt|
fmt.json
fmt.html
end
Any request of type */*
will be json.
To make it html you just need to make it the first format that's responded to:
respond_to do |fmt|
fmt.html
fmt.json
end