Rails from the command line

B

Bucco

I have been reading "Ruby for Rails". There is a section in the book
that talks about running rails without a webserver. This was done
either by loading the environment into irb, or by running scripts that
have the line:

require 'config/environment'

I thought this to be a neat idea for putting together ruby apps with
dbs. Does anyone know of further information on this subject?

Thanks:)

SA
 
D

Dave Burt

Bucco said:
I have been reading "Ruby for Rails". There is a section in the book
that talks about running rails without a webserver. This was done
either by loading the environment into irb, or by running scripts that
have the line:

require 'config/environment'

I thought this to be a neat idea for putting together ruby apps with
dbs. Does anyone know of further information on this subject?

Rails is a web app framework, and if you're not doing a web app, you're
not going to find most of it terribly useful. But ActiveRecord is a
generally useful database interface.

Check out the Rails wiki's page on using ActiveRecord without Rails.

Cheers,
Dave
 
M

Martin Nemzow

You might also try FXFox to build a standard desktop GUI and end up with an
application that runs on Windows, Linux, etc instead of using Java or .NET.
and looks just like it. Basically, what I see is that RoR is a framework for
SOA with a language (Ruby) that makes most IDEs and languages look really
old and tired. If you want to write once and run anywhere, Ruby seems to be
the real ticket.
 

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

Staff online

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,040
Latest member
papereejit

Latest Threads

Top