SitePoint Sponsor |
|
User Tag List
Results 1 to 12 of 12
Thread: is there any hope?
-
May 26, 2006, 02:54 #1
is there any hope?
Hi Friends!
In one line I wnat to create & run my very first ROR apps but... no luck.
Well the problem is I'm not even able to install ROR. (Please keep in mind I don't have any idea to configure and run apache)
Presently I'm using apache2triad 1.5.4 (apache2triad.net) and trying to configure ruby on that.
First thing is there any way to put my .rhtml files in "htdocs" folder and run it?
I've tried http://mpcon.org/apacheguide/ruby.php but at last when I tried http://localhost:3000, it gave me "bad handshake" error with some zunk charachters. Where I was wrong.
When I tried "InstantRails-1.3-win.zip" it worked but apache2triad(php, mysql) was no longer availble during that.
What is "#!c:/ruby/bin/ruby", is ror needs a dedicated folder to run (like perl-cgi as "cgi-bin"), if yes how I'll be able to run my .rhtml files from the root of my site just like php.
Any ideas, suggesstions, online resources will really help me a lot. I want to comfortable enough using ROR just like PHP.
At least give me a idea how can I run my first "Hello world!" code using ROR at my local server with Internet Browser.
Please help me!
-
May 26, 2006, 03:15 #2
- Join Date
- Jul 2005
- Posts
- 606
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think you need to read up on Rails first, you clearly have no idea how it works. Have you just jumped on the bandwagon because it's in the "in-thing", by any chance?
-
May 26, 2006, 03:52 #3
If you want to learn Rails, just start by using the built-in WEBrick server that comes with it while developing. Don't worry about setting Rails up with Apache or whatever, because it's not important to know until you want to move your app into production. Learn the framework first, then learn how to administer the server it will run on.
-
May 26, 2006, 05:19 #4
Originally Posted by Bob Carologees
-
May 26, 2006, 05:34 #5
Originally Posted by vgarcia
Now one thing is clear for me that, I can't run ROR & PHP simultaneously (in my case). Further I'm trying..., and I'll come again to disturb you. But next time I'll keep in mind that not to ask any foolish question.
Thanks for everything friends!
-
May 26, 2006, 06:54 #6
Finally:
http://mpcon.org/apacheguide/ruby.php
http://www.onlamp.com/pub/a/onlamp/2.../20/rails.html
it's really good for any beginner, even for a non-programmer.
-
May 26, 2006, 07:33 #7
- Join Date
- Jul 2004
- Location
- Oklahoma
- Posts
- 119
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by amrknt
-
May 27, 2006, 20:52 #8
Originally Posted by Sgarissta
BTW after creating my small apps using some online tutorials I’m surprised how I’ll upload all this on my live server using ftp or how I will create news apps on my server bco’z there (on live server) I won’t be able to access Command Prompt to generate my apps folder using “ruby path/myApps”.
Will generating my apps folder locally and uploading it through ftp, work or there is something else.
One thing also I would like to know. As ROR generated apps accessed by URL containing to many folders - chlidFolders (i.e. http://www.anysite.com/chapter/topic/issues), what do you think, will search engine consider it (please mind the long nested folder hierarchy based URL).
Thanks to all!
-
May 28, 2006, 04:59 #9
Originally Posted by amrknt
Originally Posted by amrknt
-
May 29, 2006, 07:52 #10
But what about the file name based URL i.e. http://someSite.com/country/shops_in_city1.html OR http://someSite.com/shops_in_city1_country.html .
As ROR will probably display it something like http://someSite.com/country/city1/shop
Any idea how we generate a traditional style URL in ROR?
Actually I'm a little bit confused as I believe a file name based URL is more meaningfull in contrast of SEO.
And what's the role of "public" folder in ROR setup.
-
May 29, 2006, 08:52 #11
Originally Posted by amrknt
Originally Posted by amrknt
A URL like /shop/products/4952 isn't as SE friendly as /shop/products/my-cool-widget, but the 2nd style is no worse or better than /shop/products/my-cool-widget.html
Originally Posted by amrknt
-
May 30, 2006, 10:17 #12
Thanks a lot vgarcia for clearing my doubts. I found there is only you in ruby forum who is solving all the problem. I don't know why, but u r great. Keep it up.
Thanks a lot once again!
Bookmarks