Archive for the 'rails' Category

href_to_params

Tuesday, November 27th, 2007

Every now and then I find myself in need of the ability to take a string like “http://www.estately.com/p/WA_Seattle” and figure out the params hash that it would generate – the method to do that in rails isn’t immediately obvious, but after a little digging, I’m happy to say it isn’t too hard. I admit, I [...]

startups.each { |startup| startup.code.inspect }