bad sql after :conditions =>

Oskar Szrajer
2009-01-11T14:03:07Z

I''ve something like that:

in layout :
links looks that :

<%= link_to month.strftime(''%B, %Y''),
"/?y=#{month.strftime("%Y")}&m=#{month.strftime("%m")}"
%>

in controler I''ve :

 if params[:y] && params[:m]
      @posts = Post.find(:all,:order => ''created_at''
,:conditions =>
[''extract(year from created_at) LIKE ? AND extract(month from
created_at) LIKE ?'', params[:y], params[:m]] )
    else
      @posts = Post.find(:all)
    end


but in console I''ve got that sql code:
 SELECT * FROM "posts" WHERE (extract(year from created_at) LIKE
E''2009''
AND extract(month from created_at) LIKE E''01'') ORDER BY
created_at

looks like this E near that LIKE broke everything

some idea how to repair that