Ruby on Rails does not find routes -
i set rails project, , http://dev.xxx.com/public/ resolved /home/xxx/public_html/xxx/public/index.html
when try access controller, keep getting 404s.
for instance, pages_controller.rb:
class pagescontroller < applicationcontroller def index end end when accessing http://dev.xxx.com/pagescontroller, error:
file not exist: /home/xxx/public_html/xxx/rails_apps/belldev/pagescontroller when accessing http//dev.xxx.com/xxx/rails_apps/belldev/app/controllers/pages_controller, error:
file not exist: /home/xxx/public_html/xxx/rails_apps/belldev/xxx please enlighten me doing wrong, here.
assuming of routing setup correctly, address should http://dev.xxx.com/pages/ not http://dev.xxx.com/pagescontroller/
Comments
Post a Comment