redirected root path to thankyou.html.erb instead of the index.html.erb file