ruby on rails - Why default page is calling even though index.html.erb file in public folder is missing? -
i developing simple ruby on rails app.the server has started successfully.then when go default web url localhost:3000/ default route called showing home page instructions.but dont want need remove index.html.erb file in public folder under main project directory.the real problem file missing , still default page loading.
what happening here , index.html.erb file located.[dont mark duplicate because here problem different].how call route show mypage.html
server log
started "/" ::1 @ 2016-04-19 23:29:26 +0530 processing rails::welcomecontroller#index html rendered c:/railsinstaller/ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-4.2.5.1/lib/rails/templates/rails/welcome/index.html.erb (0.0ms) completed 200 ok in 36ms (views: 35.1ms | activerecord: 0.0ms)
files in public folder:
400.html 422.html 500.html favicon.ico robots.txt
add root
routes.rb
root 'mycontroller#my_action'
Comments
Post a Comment