Suppose we create a new controller with an action to perform an operation and rendering a view.We add a route via plugin file and I checked the route found via rake routes as
register_vip_section GET /register/vip_section(.:format) vip_section#index
The controller looks like:
class VipSectionController < ApplicationController
def index ... end
end
but when I tries to make a get call to the same as:
http://localhost:3000/register/vip_section
It doesn't work.It is raising :
Started GET "/404-body?_=1489209463400" for 127.0.0.1 at 2017-03-11 10:47:46 +0530
I, [2017-03-11T10:47:47.051542 #19641] INFO -- : Processing by ExceptionsController#not_found_body as HTML
I, [2017-03-11T10:47:47.054589 #19641] INFO -- : Parameters: {"_"=>"1489209463400"}
D, [2017-03-11T10:47:47.062975 #19641] DEBUG -- : User Load (3.2ms) SELECT "users"