Topic: Can only See scaffolding pages within WEBrick and not Apache - OSX

I am just begining to set a test web application for rails.  I have created a project, set up and connected to a mysql db, and created scaffolding for my db.  However,  when accessing my web project though WEBrick I can view all the appropriate scaffold pages but I cannot within apache.  I have tried stopping and restarting my apache server and still just get the "Welcome Aboard" page instead of the default scaffold view that allows me to edit, delete ect.  It is as if apache is not refreshing my code changes/modifications  (Using TextMate as editor).

Any ideas or suggestions on why apache is not showing current project view??

thanks
csalle01

Re: Can only See scaffolding pages within WEBrick and not Apache - OSX

What happens when you go to one of the controller/action pages through Apache?

Did you set up Apache with fcgi, mod_ruby, or something else?

Railscasts - Free Ruby on Rails Screencasts

Re: Can only See scaffolding pages within WEBrick and not Apache - OSX

When I try to access: http://localhost/test/new

I get the following error:

Application error

Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html

but in WEBrick:

http://localhost:3000/test/new I get the desired form to create a new object.

I set up apache as per this article at tonyarnold: http://www.tonyarnold.com/articles/2005 … -beginners

Therefore, I set up fcgi by making the appropriate changes to the /etc/httpd/httpd.conf file.

I added this that the conf file:

<IfModule mod_fastcgi.c>
    FastCgiIpcDir /tmp/fcgi_ipc/
    AddHandler fastcgi-script .fcgi
</IfModule>

Alias /test/ "/Users/YOURUSERNAME/Rails/Test/public/"
Alias /test "/Users/YOURUSERNAME/Rails/Test/public/"

<Directory /Users/YOURUSERNAME/Rails/Test/public/>
  Options ExecCGI FollowSymLinks
  AllowOverride all
  Order allow,deny
  Allow from all
</Directory>

and then restart apache...

Re: Can only See scaffolding pages within WEBrick and not Apache - OSX

did you find a solution csalle01?

Re: Can only See scaffolding pages within WEBrick and not Apache - OSX

Has anyone else run into this?  I can navigate and build pages just fine using webrick on port 3000, but using apache I just get the "Application error".

Thanks!