The link that you provided as the answer doesn't exact the same and it doesn't help me to get rid from the error. it said that need to use /index, so I've used in my case /new - and I've got even more error.... So, getting the answer that clarify issue was pretty helpful because this question even it was similar was not duplicate - and I could not use the link that you provide to solve this issue. Once again finding the solution is the most important criteria even for some not understandable reason I've got (-) for asking the question. thanks. I would like to clarify issue as below and don't want to receive (-) for just asking question.
My instructor said that "there are no stupid questions but rather no answered ones.."
I've recently asked 2 questions. One of them was answered immediately, second one was not answered yet. Regardless of this, I've got -2 for both questions...
The question below is regarding ch7, Michael Hartl "Ruby on Rails tutorial": I have error and related file as below. How to fix it?
ERROR["test_should_get_new", UsersControllerTest, 1.258815998211503]
test_should_get_new#UsersControllerTest (1.26s)
URI::InvalidURIError: URI::InvalidURIError: bad URI(is not URI?): http://www.example.com:80new
test/controllers/users_controller_test.rb:4:in `block in <class:UsersControllerTest>'
test/controllers/users_controller_test.rb
require 'test_helper'
class UsersControllerTest < ActionDispatch::IntegrationTest
test "should get new" do
get :new
assert_response :success
end
end