Forum: Ruby on Rails Accessing external library

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Cuong L. (Guest)
on 2006-02-03 00:55
(Received via mailing list)
Hi all,
I have been trying to design a Web front end for common unix sysadmin
(similar to
Does any one here have any recommendation as to how I can parse unix
configuration file from Rails controller?

Not trying to reinvent the wheel but just want to learn more about

Giles B. (Guest)
on 2006-02-07 01:32
(Received via mailing list)
Hi Cuong, that should be pretty easy. First create a model for the
file, give that model a .parse() method, and then have the controller
call that method on the model. You want all the real code inside the

The method itself should be pretty easy -- just open the file and use
regular expressions.


On 2/2/06, Cuong L. <removed_email_address@domain.invalid> wrote:
> _______________________________________________
> Rails mailing list
> removed_email_address@domain.invalid

Giles Goat Boy
This topic is locked and can not be replied to.