Re: bad sql after :conditions =>

Oskar Szrajer
2009-01-11T16:05:58Z

I think there will not a problem in link_to but I''ve try to use a
url_for


LIKE in condition is not a problem too I''ve check with = and still
getting something similary:


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


gives :


SELECT * FROM "posts" WHERE (extract(year from created_at) =
E''2009'' AND
extract(month from created_at) = E''01'') ORDER BY created_at


still this E exist in sql code