Saturday, February 20, 2010

[Rails] routing question

I'm pushing my rails app to a server. My local development machine
has localhost:3000/... as the working URL, but the server has it set
up so that the URL points to a named directory, e.g. server.com/dir

So when I push the app to the server, it finds the index just fine at
server.com/dir, but when I click on a link, the "dir" drops out. For
example, If I have a thingy controller, instead of pointing to
server.com/dir/thingy, it creates the URL server.com/thingy, and I get
a "page not found" error.

Is there some way to set up routes to point to server.com/dir as the
base? Or is this some sort of no-no?

TIA,
Craig

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate