Displaying 5 results from an estimated 5 matches for "suzdalev".
2011 Sep 05
8
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
Hello!
Just upgraded to Rails 3.1, ran my test and found this issue:
class Trade < ActiveRecord::Base
has_many :transaction_trades
.....
def Trade.do_something
stale_trades = Trade.count(''transaction_trades.id'',
:include => :transaction_trades,
:group => ''trades.id'')
2011 Sep 08
4
In Rails 3.1 Model.count() ignores :include - no outer join in generated SQL
Hello!
At first I posted this in rubyonrails-talk, but no one there was able to
tell me if this is a bug or not (I got only suggestion for workaround).
As this looks like 3.1 regression that breaks existing 3.0.10 code I decided
to post this here in addition.
I''ve upgraded to Rails 3.1 (from 3.0.10), ran my test suite and found this
issue:
class Trade < ActiveRecord::Base
2011 Oct 12
4
How to access controller's instance variable in a js.erb loaded by javascript_include_tag?
Hello!
In rails 3.1 app I have a controller UsersController with ''show'' action.
show.html.erb contains:
<% content_for(:head) do %>
<%= javascript_include_tag ''myscript'' %>
<% end %>
<p>Hello @user.name</p>
And I have this in myscript.js.erb
$jQuery(document).ready(function() {
alert(<%= @user.name %>);
});
@user is being
2011 Sep 07
3
Method get of ActionController::TestCase ignores routes.rb?
Hi!
I''m running into issue which seems to indicate that
ActionController::TestCase.get() method ignores what I have in routes.rb.
Happens in 3.0.10 and 3.1.0 too.
I have the following RSpec2 test of my XmlRpcController#index action:
it "should get nothing in response to GET request" do
get :index
response.response_code.should == 400 #bad_request
end
And the only line
2002 Oct 13
0
Still can't start wine
I still can't start Wine. I've got this message again:
wineserver: fcntl /tmp/.wine-user/server-xxxx-xxxx/lock: Invalid argument
When i set debug level to 2 it prints out:
sock_init: shutdown() causes POLLHUP
What might be wrong?
Thanks in advance.
Dmitry.