---
title: Creating a URL String in Ruby
teaser:
tags: web,ruby,testing
author: Matt Jankowski
published_on: 2012-08-03
---

<iframe src="http://player.vimeo.com/video/46712790" width="500" height="375" frameborder="0"></iframe>

Josh Clayton recently posted about [Mind Bending
Factories](https://thoughtbot.com/blog/post/28146418628/mind-bending-factories)
-- demonstrating how a 20+ line factory definition lets you use
Factory Bot to create URL strings from factories, in Ruby.  I came up
with an alternate approach, which I reveal here in this free &
exclusive webinar.
