From: db_lists mail Date: 2013-07-26T13:44:01+09:00 Subject: OK, what am I doing wrong, here? --047d7b4141768e434804e262caf2 Content-Type: text/plain; charset=ISO-8859-1 I set up a Rails project, "belldev", and http://dev.xxx.com/public/resolves to /home/xxx/public_html/xxx/public/index.html But when I try to access a controller, I keep getting 404's! For instance, pages_controller.rb: class PagesController < ApplicationController def index end end AND routes.rb: xxx::Application.routes.draw do #Pages controller get "pages/index" get "pages/help", as: :help get "pages/browse", as: :browse root to: "pages#index But when accessing http://dev.xxx.com/pages, I get: File does not exist: /home/xxx/public_html/xxx/rails_apps/belldev/pages Any idea of where I'm going wrong, here? --047d7b4141768e434804e262caf2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

I set up a Rails project, "belldev", an= d http://dev.xxx.com/public/ res= olves to /home/xxx/public_html/xxx/public/index.html

But when I try to access a controller, I keep getting 404's!
=
For instance, pages_controller.rb:
class PagesController= < ApplicationController
=A0 def index
end
end


AND=A0routes.rb:
xxx::Application.routes.d= raw do
#Pages controller
get "pages/index"
get "p= ages/help", as: :help
get "pages/browse", as: :browse
root to: "pages#index

But when accessing http://dev.xxx.com/pages, I get: File= does not exist: /home/xxx/public_html/xxx/rails_apps/belldev/pages


Any idea of where I'm going wrong, h= ere?
--047d7b4141768e434804e262caf2--