I have the next line of code:
@selected_events = Evento.where(dia: "2014/11/20")
The question is that the result of the query shows me like if I did the query with just "2014", and its the same for "2014-11-20" and "2014 11 20". Its like its takes this symbols as an end of query or something.
> irb(main):007:0> Evento.where(dia: "2014/-/1120")
Evento Load (0.0ms) SELECT "eventos".* FROM "eventos" WHERE "eventos"."dia" = 2014
=> #<ActiveRecord::Relation ...>