I see. Well I will merge it for now. Thanks bro


On Thu, May 22, 2014 at 3:36 PM, xvonabur <notifications@github.com> wrote:

> In app/controllers/monologue/tags_controller.rb:
>
> > @@ -11,6 +11,6 @@ def show
> >
> >    private
> >    def retrieve_tag
> > -    Monologue::Tag.where("lower(name) = ?", params[:tag].mb_chars.downcase.to_s).first
> > +    Monologue::Tag.where("lower(name) = ?", params[:tag].mb_chars.to_s.downcase).first
>
> I'll try. But it's not easy to reproduce.
> Sometimes Monologue::Tag.where("lower(name) = ?",
> 'my_tag'.mb_chars.downcase.to_s).first will result in such SQL:
> SELECT 'monologue_tags'.* FROM 'monologue_tags' WHERE (lower(name) =
> 'm\0\0\0\0\0') ORDER BY 'monologue_tags'.'id' ASC LIMIT 1.
> I managed to reproduced it only once in command line.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/jipiboily/monologue/pull/196/files#r12949669>
> .
>