seancribbs/webmachine-ruby — pull request #41 by petejohanson (2012-04-09 17:50:54+00:00)
Title: Initial work on crafting URLs for resources.

Ok, here's the initial simple work on crafting URLs given a resource and path variable values.

To make this usable from within a particular resource, (e.g. for "view helpers"), we would need to somehow let a Webmachine::Resource have access to the Webmachine::Dispatcher instance. I think it may make sense to add an extra "application" parameter to the Webmachine::Resource#initialize method so that user's not using the global application instance would be able to get there.

Thoughts?