Rails webmin like application

I'm a newbie in ruby I'm wondering if there are a way to build a little
application like webmin with ruby on rails.
For example I want to modify the bgpd configuration file on a linux box
or start and stop the bgp demon.
Who does write the configuration file? a ruby "function" or the
underlying database application if needed.
Who does start and stop the demon calling the service command (service
bgpd start)?

Thanks in advance, bye bye