technoweenie / guillotine

URL shortening hobby kit
http://techno-weenie.net/guillotine/
MIT License
486 stars 54 forks source link

Create with a empty code #13

Open MarceloCajueiro opened 11 years ago

MarceloCajueiro commented 11 years ago

Hello,

I'm working in a sinatra app, passing the parameters through a form, and when we pass a empty code, guillotine tries to create a url in the root path.

To avoid things like:

params[:code] = nil if params[:code] == ""

Can we improve the guillotine to ignore empty code?