Displaying 1 result from an estimated 1 matches for "sale_start_date".
2013 Sep 15
1
Why does Rails convert scopes to downcase
...I use sqlite, all works when I want to get the object with the
activeDate scope.
When I use postgres, I get an error "pg:error salestartdate column not
found"!
Postgres is case sensitive! So why does Rails convert saleStartDate to
salestartdate in a scope?
I changed saleStartDate to sale_start_date. Now it works.
Is it best practice to use _ and not CamelCase in scopes?
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsub...