Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
# Can be used by load balancers and uptime monitors to verify that the app is live.
get "up" => "rails/health#show", :as => :rails_health_check

# resources :homepage, only: [:index]
root to: redirect("/hacker/login")
resources :homepage, only: [:index]
# root to: redirect("/hacker/login")
get "/about", to: "homepage#about"
get "/contact", to: "homepage#contact"

Expand Down
2 changes: 1 addition & 1 deletion test/controllers/homepage_controller_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
class HomepageControllerTest < ActionDispatch::IntegrationTest
test "should get index" do
get root_path
assert_redirected_to '/hacker/login'
assert_response :success
end
end
Loading