web development w/ ruby

C

Cam

Hi guys,

I need to make some simple web-pages at work for internal use
(changing svn password, modifying postfix email-aliases, etc). I'd
like to use ruby for this. I haven't really done anything w/
web-development in many years, and back then i was using php. I know
that ruby on rails is the hottest thing ever right now, but it doesn't
seem like i should need database-centric stuff like that for the
simple web-apps i need to develop. I found mod-ruby and have set it
up, but i'm not sure how to best use it now. Is there any
documentation avaliable? do i just use puts to output html streams,
or is that streamlined for me somehow? How do i ask for input, etc.?

Thanks,
Cameron Matheson
 
J

Justin Collins

Cam said:
Hi guys,

I need to make some simple web-pages at work for internal use
(changing svn password, modifying postfix email-aliases, etc). I'd
like to use ruby for this. I haven't really done anything w/
web-development in many years, and back then i was using php. I know
that ruby on rails is the hottest thing ever right now, but it doesn't
seem like i should need database-centric stuff like that for the
simple web-apps i need to develop. I found mod-ruby and have set it
up, but i'm not sure how to best use it now. Is there any
documentation avaliable? do i just use puts to output html streams,
or is that streamlined for me somehow? How do i ask for input, etc.?

Thanks,
Cameron Matheson
http://ruby-doc.org/core/classes/CGI.html

The CGI class with the HTML extensions will take care of all the HTML
output. For example:

require 'cgi'

cgi = Cgi.new('html4')

cgi.out {

cgi.html {

cgi.body {

"Hello!"
}
}
}


It has functions for nearly all HTML tags/forms/session/cookie stuff.

-Justin
 
E

Ed Howland

Hi guys,

I need to make some simple web-pages at work for internal use
(changing svn password, modifying postfix email-aliases, etc). I'd
like to use ruby for this. I haven't really done anything w/
web-development in many years, and back then i was using php. I know
that ruby on rails is the hottest thing ever right now, but it doesn't
seem like i should need database-centric stuff like that for the
simple web-apps i need to develop. I found mod-ruby and have set it
up, but i'm not sure how to best use it now. Is there any
documentation avaliable? do i just use puts to output html streams,
or is that streamlined for me somehow? How do i ask for input, etc.?

I'd point out that RoR does not need a DB. You can make your own
Models, or just put all your logic inside controllers. I've done that
for a couple of one-off projects. Works fine.

Ed
 
B

Bill Guindon

Hi guys,

I need to make some simple web-pages at work for internal use
(changing svn password, modifying postfix email-aliases, etc). I'd
like to use ruby for this. I haven't really done anything w/
web-development in many years, and back then i was using php. I know
that ruby on rails is the hottest thing ever right now, but it doesn't
seem like i should need database-centric stuff like that for the
simple web-apps i need to develop. I found mod-ruby and have set it
up, but i'm not sure how to best use it now. Is there any
documentation avaliable? do i just use puts to output html streams,
or is that streamlined for me somehow? How do i ask for input, etc.?

Brian Wisti has a simple page template tool that might work for you:
http://coolnamehere.com/products/pagetemplate/
 
C

Cam

Hi,

I'd point out that RoR does not need a DB. You can make your own
Models, or just put all your logic inside controllers. I've done that
for a couple of one-off projects. Works fine.

cool, i haven't paid a whole lot of attention to rails (like i had
said i hadn't been doing any sort of web-development before), but i
was under the impression that it was just for stream-lining
webapps/database/lard. I'll have to give it another look,

Cam
 
J

James Britt

Cam said:
Hi,




cool, i haven't paid a whole lot of attention to rails (like i had
said i hadn't been doing any sort of web-development before), but i
was under the impression that it was just for stream-lining
webapps/database/lard. I'll have to give it another look,


You might also want to look at Nitro and IOWA

http://www.nitrohq.com

http://enigo.com/projects/iowa/tutorial/what_is_it.html


I've found Nitro much simpler to work with than Rails in many cases,
particularly when starting off with no database and then, if needed,
easing into the use of one. It's very natural.



James

--

http://www.ruby-doc.org - Ruby Help & Documentation
http://www.artima.com/rubycs/ - Ruby Code & Style: Writers wanted
http://www.rubystuff.com - The Ruby Store for Ruby Stuff
http://www.jamesbritt.com - Playing with Better Toys
http://www.30secondrule.com - Building Better Tools
 
G

George Moschovitis

I've found Nitro much simpler to work with than Rails in many cases,
That sounds like a big plus (over Rails). How does one go about doing thi= s?
And do the various relational macros carry over pretty well?

very easy:

$ gem install nitro
$ cd mydir
$ mkdir public
$ vi run.rb
include 'nitro'
Nitro.run
$ cd public
$ vi index.xhtml
<b>hello world</b>
$ cd ..
$ ruby run.rb

and browse localhost:9999

to make this dynamic:

$ vi public/index.xhtml
<b>hello world, the time is #{Time.now}</b>

and refresh your browser ;-)

From there, you can start adding pretty much everything, from ORM, to
ajax, to webservices, you name it. Nitro provides everything you need.

For more details check out www.nitrohq.com, or join the mailing list...


regards,
George.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,148
Messages
2,570,838
Members
47,385
Latest member
Joneswilliam01

Latest Threads

Top