You cannot post messages because only members can post, and you are not currently a member.
Description:
A group for discussing Ambition, the ambitious Ruby to SQL gem.
|
|
|
will_paginate & ambition? count method seems incompatible
|
| |
Hi,
I'm using:
ambition-0.5.4
ambitious-activerecord-0.1.3
mislav-will_paginate-2.3.11
Will_paginate won't print pagination links on my pages, when using
Ambition.
It thinks my collections have a total_entries size of zero.
I am new to Ambition, any help would be appreciated...
Using ambition I get this:... more »
|
|
ambition / lib / ambition / enumerable.rb
|
| |
Hi,
Is this line correct?
remove_method :count, :find, :find_all
I get an error when running ambition because I think Ruby Enumerable
doesn't have a count method.
Cheers
Mike
|
|
Ahh if only I'd found you guys before I started work.
|
| |
Just hacked together something similar over the last two weeks or so.
Right now its just an ActiveRecord extension, but I approached a bit
differently. Less flexibly, but more DSLish.
[link]
I have to say I think you implementation is better in the long run as
its more flexible. Heres to good ideas!... more »
|
|
sort_by a calculation of two fields
|
| |
Hi,
I'd like to do the following:
.sort_by { |mirror| (mirror.connections_used -
mirror.connection_limit) }
which should generate "ORDER BY connections_used - connection_limit"
When I try the sort_by above, I get:
RuntimeError: [:connections_used, [:array, [:call,
[:dvar, :mirror], :connection_limit]]]... more »
|
|
Ambition-like API for DataMapper
|
| |
Rather than cross-post I wanted to bring attention to this list to an
Ambition-like API for DataMapper:
[link]
Essentially I wrote a DataMapper plugin that allows you to use an
Ambition-like API with DM models and collections. It's not using
Ambition's guts (for reasons outlined in the post), but I thought it... more »
|
|
Rails 2.2.2 ambitious-activerecord fix
|
| |
Hi folks, I pushed a small commit to my ambitious-activerecord fork this afternoon to fix Rails 2.2.2 compatibility. Rails 2.2.2 removed ActiveRecord::Base.active_conn ection_name, along with a few other related methods, in favour of the ConnectionHandler class, and this broke the active_connection? method in ambitious-... more »
|
|
Fwd: ParseTree 3.0 release
|
| |
FYI :) ---------- Forwarded message ---------- ...To: Ryan Davis <ryand-r...@zenspider.com> I'm mailing you because you are listed an a gem owner that is dependent upon ParseTree. The next release of ParseTree, 3.0, will NOT be backwards compatible with the currently released version. Changes are listed below the dependents list.... more »
|
|
|