Ruby on rails 为什么Localhost:3000指向默认页面?
我不熟悉Rails。在rails运行的情况下,打开Ruby on rails 为什么Localhost:3000指向默认页面?,ruby-on-rails,networking,localhost,Ruby On Rails,Networking,Localhost,我不熟悉Rails。在rails运行的情况下,打开localhost:3000进入默认的“欢迎加入”页面。 Rake routes命令发出一条消息,表示我没有定义任何路由,但我没有在config/routes.rb中更改任何内容 我试图下载回我的github存储库,但问题仍然存在。有什么想法吗 @MarcinAdamczyk,@RichPeck。我应该说localhost以前确实工作过。这就是我所拥有的: (一) Pinteresting::Application.routes.draw do
localhost:3000
进入默认的“欢迎加入”页面。
Rake routes命令发出一条消息,表示我没有定义任何路由,但我没有在config/routes.rb
中更改任何内容
我试图下载回我的github存储库,但问题仍然存在。有什么想法吗
@MarcinAdamczyk,@RichPeck。我应该说localhost以前确实工作过。这就是我所拥有的:
(一)
Pinteresting::Application.routes.draw do
资源:PIN
devise_for :users
devise_for :installs
root "pages#home"
get "about" => "pages#about"
(二)
类ApplicationController如果您正在使用Rails,则结束如果您正在使用Rails如果您正在使用Rails如果您正在使用Rails路由 您需要更改您的路线以获得以下内容:
#config/routes.rb
root "application#index"
然后,您可以创建相应的控制器操作(&p):
#app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
def index
end
end
#app/views/application/index.html.erb
Test
#app/controllers/application_controller.rb
类ApplicationController
从你发布的内容来看,这会解决你眼前的问题 路线 您需要更改您的路线以获得以下内容:
#config/routes.rb
root "application#index"
然后,您可以创建相应的控制器操作(&p):
#app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
def index
end
end
#app/views/application/index.html.erb
Test
#app/controllers/application_controller.rb
类ApplicationController
从你发布的内容来看,这会解决你眼前的问题 路线 您需要更改您的路线以获得以下内容:
#config/routes.rb
root "application#index"
然后,您可以创建相应的控制器操作(&p):
#app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
def index
end
end
#app/views/application/index.html.erb
Test
#app/controllers/application_controller.rb
类ApplicationController
从你发布的内容来看,这会解决你眼前的问题 路线 您需要更改您的路线以获得以下内容:
#config/routes.rb
root "application#index"
然后,您可以创建相应的控制器操作(&p):
#app/controllers/application_controller.rb
class ApplicationController < ActionController::Base
def index
end
end
#app/views/application/index.html.erb
Test
#app/controllers/application_controller.rb
类ApplicationController
从你发布的内容来看,这会解决你眼前的问题 @MarcinAdamczyk。谢谢你的帮忙,但没用。当然是因为我的信息很差,而且我是RoR的新手。添加了更多信息。。。我还考虑如何回到以前的好工作程序,我可以从Github. @ MarcinAdamczyk检索。谢谢你的帮忙,但没用。当然是因为我的信息很差,而且我是RoR的新手。添加了更多信息。。。我还考虑如何回到以前的好工作程序,我可以从Github. @ MarcinAdamczyk检索。谢谢你的帮忙,但没用。当然是因为我的信息很差,而且我是RoR的新手。添加了更多信息。。。我还考虑如何回到以前的好工作程序,我可以从Github. @ MarcinAdamczyk检索。谢谢你的帮忙,但没用。当然是因为我的信息很差,而且我是RoR的新手。添加了更多信息。。。我也会考虑如何回到以前工作的应用程序,我可以从GITHUB检索。