newbie: Rails on remote Apache server not displaying index.html.erb
Posted
by paracaudex
on Stack Overflow
See other posts from Stack Overflow
or by paracaudex
Published on 2010-04-27T15:26:19Z
Indexed on
2010/04/27
15:33 UTC
Read the original article
Hit count: 331
ruby-on-rails
|apache
I played around with Rails on my laptop (running Linux + Apache + MySQL) and had no trouble getting the Getting Started with Rails tutorial to work locally. Now I'm trying the same thing at work on a remote Mac OS X + Apache server, and things aren't quite so rosy.
I typed rails blog -d mysql
to create a directory called blog
in /Library/WebServer/Documents/mydirectory
. The trouble is, if I go to server.com/mydirectory/public
, I get the public/index.html
in my browser. But, I don't get this file if I go to server.com/mydirectory/
. Instead, I get a 403 error. Also, when I:
script/generate controller home index
to create:
app/views/home/index.html.erb
I am unable to view this file, whether I go to server.com/mydirectory/home/index
, or if I add a new line (map.root :controller => "home"
) to config/routes.rb
and go to server.com/mydirectory
.
Am I missing something really obvious about Apache and Rails?
© Stack Overflow or respective owner