<div>Hi list</div><div><br></div><div>I've got a ruby daemon chugging along doing all kinds of interesting offline-processingy things for me, but one thing I need it to do is be able to generate a url to a page in one of my rails websites:</div>

<div><br></div><div>url_to_widget_page = "<a href="http://doodah.com/some/path/here">http://doodah.com/some/path/here</a>"</div><div><br></div><div>...but that explicit path might go mouldy as the system evolves. It would be nice to be able to do:</div>

<div><br></div><div>url_to_widget_page = "<a href="http://doodah.com#{widget_path}">http://doodah.com#{widget_path}</a>"</div><div><br></div><div>much in the same way that you can do in rails. I'm already using the js-routes gem to generate a "file cache" of the routes in my web app, so I can do:</div>

<div><br></div><div>Router.widget_path()    // returns '/some/path/here'</div><div><br></div><div>from js, and the file is regenerated on every request in dev mode. I'd like the same capability from non-rails ruby code. </div>

<div><br></div><div>My google-fu seems weak in this area - has anyone seen a gem like this or have any alternative ideas on how this goal might be achieved? I don't think porting the js-routes gem would be too hard, but I'd rather not reinvent the wheel.</div>

<div><br></div><div>Cheers</div><div>Lee</div>