I am in early development of my first RoR project. I am following
Agile Web Development with Rails and am trying to adopt their best
practices ideas, specifically making use of the test suite and
I wish to validate a URL entered into a data entry field. I found
some code that does just that: http://www.igvita.com/blog/2006/09/07/validating-url-in-ruby-on-rails/
. I want to test it in my code.
It won't validate with WEbrick. I figured that Webrick just can't
reach out into the Internet, but I'm not sure of that. I think that
it might work if I were to use Apache. The instructions in the book
that deal with Apache are in a section on deployment. They suggest
deploying early and often. Sounds good to me. I thought I'd try to
deploy to another area of my Fedora 7 machine.
I've installed Mongrel and Capistrano. When I installed Mongrel, I
notice that it comes up on port 3000, just as WEbrick does.
Capistrano deploys to ports 8000 and 8001. Before the book talks
about connecting Apache and Mongrel, it calls for a test: curl -I
http://erie.lakeinfoworks.com:8000. I don't get a connection and I'm
not sure what to do about it.
As I see it, one of my options is to deploy to a real remote server.
I have one, but I'm not sure that it supports Ruby. Another is to
find a tutorial that will teach me how to use my local server as
though it were a remote.
Any suggestions? Thanks.