SitePoint Sponsor |
|
User Tag List
Results 1 to 14 of 14
Thread: Ruby without Rails
-
May 22, 2006, 17:21 #1
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 2,087
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
Ruby without Rails
I am warming up to Ruby. However, I am not overly keen on Rails as for right now, but mabye in the future.
How could I setup Ruby (only) test setup where I could run some web stuff written in Ruby?"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
-
May 22, 2006, 17:48 #2
-
May 22, 2006, 18:24 #3
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 2,087
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
Any place to get a build of Modruby?
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
-
May 22, 2006, 19:04 #4
-
May 23, 2006, 01:56 #5
You could also look at Camping.
-
May 23, 2006, 05:08 #6
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 2,087
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
Honestly, I don't want a framework at all. I really want to play with the language as is.
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
-
May 23, 2006, 05:47 #7
Originally Posted by The New Guy
-
May 23, 2006, 06:54 #8
- Join Date
- Jul 2005
- Posts
- 124
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
-
May 23, 2006, 06:57 #9
FWIW, if you just want to use Ruby embedded in web pages without any kind of framework, you are probably better of just using PHP. A better way of learning Ruby would be to try and write some non-web based scripts in my opinion.
In fact, an even better way to learn Ruby is using Test::Unit.
http://clarkware.com/cgi/blosxom/2005/03/18
-
May 23, 2006, 08:00 #10
- Join Date
- Apr 2004
- Location
- germany
- Posts
- 4,324
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by The New Guy
1. Install apache
2. Install ruby
3. In apache's CGI directory (usually htdocs/cgi-bin) create the test.rb file as follows
Code:#!path/to/the/ruby/binary require 'CGI' print "Content-type:text/html\n\n" print "hello web"
5. If doesn't work, check apache error.log
6. If works, try adding more code (after line 3, first three are required).
-
May 23, 2006, 08:49 #11
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 2,087
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
Originally Posted by stereofrog
On a related note, I should be using rubyw.exe rather then ruby.exe right?"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
-
May 23, 2006, 10:36 #12
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
rubyw.exe doesn't create a console window, ruby.exe does. rubyw.exe is for gui applications when you don't want a visible console.
-
May 23, 2006, 10:50 #13
- Join Date
- Sep 2002
- Location
- Canada
- Posts
- 2,087
- Mentioned
- 1 Post(s)
- Tagged
- 1 Thread(s)
So, is that a yes?
"A nerd who gets contacts
and a trendy hair cut is still a nerd"
- Stephen Colbert on Apple Users
-
May 23, 2006, 10:59 #14
- Join Date
- Aug 2005
- Posts
- 986
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I think you should use the console version (regular ruby.exe), but maybe it doesn't matter.
Bookmarks