James
Not a member
James's latest activity
Saturday, February 05 2011
-
James commented at 3:55 PM
Yeah -- that makes perfect sense -- forgot that count and size actually modify the query and return a single row.
So what about my specific case with update_all...
Friday, February 04 2011
-
James commented at 5:22 PM
Turns out it has nothing to do with the joins.
Animal.limit(1).count
=> 1297Is that expected behavior?
Found this by trying to do (essentially) Animal.limit(1)...
-
James created the ticket at 4:45 PM
Limit is being ignored in the following case. When calling to_sql on the ARel object, it returns the correct SQL. Then, calling that query with find_by_sql retu...
Friday, September 24 2010
-
James created the ticket at 4:31 PM
Login.where(:date => Date.today).select("DISTINCT player_id").allAs expected, this produces the following query:
SELECT DISTINCT player_id FROM `logins` WHE...
Wednesday, July 28 2010
-
James created the ticket at 12:53 AM
The following route should pick up any route for the application and provide params[:path].
My::Application.routes.draw do |map| match '*path' => 'public#go'...
Monday, February 08 2010
-
James commented at 11:21 PM
Is there any reason we should need to explicitly set the namespace in the :to when we're within the namespace block? Seems like it should know about the namespa...
Friday, February 05 2010
-
James commented at 4:58 PM
Josh,
Previously it provided the "admin_root_url" named route, which seems to me like a great convention as it kept everything (including the index) within the ...
Thursday, February 04 2010
-
James created the ticket at 6:41 PM
In Rails 2.3.x, you could do the following:
map.namespace :admin do |admin| admin.root :controller => "admin" endIt appears this functionality is missing i...
Friday, March 13 2009
-
James created the ticket at 11:36 PM
I'm getting inconsistent results when using default_scope. What are its limitations? Right now I'm only trying to use it for default ordering, but it doesn't se...