Sure, don't care either way. I just wonder what the magic is? What is the
surprising part for you, that string.to_i removes all non-digit characters?


On Wed, Mar 26, 2014 at 6:22 PM, juliusv <notifications@github.com> wrote:

> In app/controllers/single_widget_controller.rb:
>
> > @@ -2,7 +2,15 @@ class SingleWidgetController < ApplicationController
> >    after_action :allow_iframe, only: :show
> >
> >    def show
> > +    shortened_url = ShortenedUrl.find_by_slug(params[:slug])
>
> My principle-of-least-surprise persona tells me to keep it the way it is,
> but any of these three are fine - don't want to hold this up :)
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/prometheus/promdash/pull/90/files#r11002574>
> .
>