# Local network

**URL:** <https://www.ruby-forum.com/t/local-network/90201>\
**Category:** Ruby\
**Created:** [March 26, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/local-network/90201 "2007-03-26T20:26:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![longinos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/8baadc/32.png) [@longinos](https://www.ruby-forum.com/u/longinos)\
**Post date:** [March 26, 2007, 8:26pm UTC](https://www.ruby-forum.com/t/local-network/90201/1 "2007-03-26T20:26:03Z")

</div>

can ruby be used to make an inventory and administration program,to run  
locally with no internet conection?  
can it be done with ruby on rails? or it can only be done in ruby ?

---

<div class="post-metadata">

**Author:** ![longinos](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/8baadc/32.png) [@longinos](https://www.ruby-forum.com/u/longinos)\
**Post date:** [March 26, 2007, 8:57pm UTC](https://www.ruby-forum.com/t/local-network/90201/2 "2007-03-26T20:57:24Z")

</div>

On Tue, Mar 27, 2007 at 03:26:04AM +0900, longinos wrote:

> can ruby be used to make an inventory and administration program,to run  
> locally with no internet conection?

This is rather like asking “can I write programs in Ruby?” The answer is  
“Yes”.

Collect the data you want, store it in an inventory, and display it.

> can it be done with ruby on rails?

Yes. Rails is a nice framework for building database applications with  
web  
user interfaces. You don’t need an Internet connection; just point your  
browser at [http://localhost:3000/](http://localhost:3000/) or whatever.

You might want a separate program which runs by itself to collect data  
(e.g.  
periodically, rather than in response to a HTTP request), but it can  
still  
use the ActiveRecord to access the underlying database.

> or it can only be done in ruby ?

You can do it without Rails if you wish. You can process web requests  
and  
HTML generation yourself; or you can build a non-web application using a  
GUI  
toolkit (Tk, Fox, Gtk, Qt, …lots to choose from).

Brian.
