Re: acts_as_reportable

3 views
Skip to first unread message
Message has been deleted

plump

unread,
Jun 26, 2008, 3:49:51 AM6/26/08
to Ruby Reports
sorry just found the github page - ignore my previous message

On Jun 26, 8:46 am, plump <james.r.cr...@googlemail.com> wrote:
> I'm running into a problem using acts as reportable on Rails 2.1
> When I call .report_table on an object I get the following error:
>
> ArgumentError: wrong number of arguments (1 for 0)
> from /usr/lib/ruby/gems/1.8/gems/acts_as_reportable-1.0.1/lib/
> ruport/acts_as_reportable.rb:376:in `attributes'
> from /usr/lib/ruby/gems/1.8/gems/acts_as_reportable-1.0.1/lib/
> ruport/acts_as_reportable.rb:376:in `get_attributes_with_options'
> from /usr/lib/ruby/gems/1.8/gems/acts_as_reportable-1.0.1/lib/
> ruport/acts_as_reportable.rb:294:in `reportable_data'
> from /usr/lib/ruby/gems/1.8/gems/acts_as_reportable-1.0.1/lib/
> ruport/acts_as_reportable.rb:167:in `report_table'
> from /usr/lib/ruby/gems/1.8/gems/acts_as_reportable-1.0.1/lib/
> ruport/acts_as_reportable.rb:167:in `map'
> from /usr/lib/ruby/gems/1.8/gems/acts_as_reportable-1.0.1/lib/
> ruport/acts_as_reportable.rb:167:in `report_table'
>
> Is this a known issue?
> I'll start having a look to see if I can work out what is wrong, but
> I'm pretty new to all this

Gregory Brown

unread,
Jun 26, 2008, 9:47:25 AM6/26/08
to ruby-r...@googlegroups.com
On Thu, Jun 26, 2008 at 2:49 AM, plump <james....@googlemail.com> wrote:
>
> sorry just found the github page - ignore my previous message

No need to build from github, just install AAR 1.1.1 gem (unless you
are vendoring, then github is fine)

-greg

plump

unread,
Jun 27, 2008, 6:02:00 AM6/27/08
to Ruby Reports
FYI,
the new acts as reportable doesn't seem to like :only conditions
specified in :include
e.g.
people.pages.report_table(:all,
:include => {:people => {:only
=> :display_name}})

However, this works fine if I remove the :only
e.g.
people.pages.report_table(:all,
:include => :people )


On Jun 26, 2:47 pm, "Gregory Brown" <gregory.t.br...@gmail.com> wrote:

Gregory Brown

unread,
Jun 27, 2008, 10:06:10 AM6/27/08
to ruby-r...@googlegroups.com
On Fri, Jun 27, 2008 at 5:02 AM, plump <james....@googlemail.com> wrote:
\

> However, this works fine if I remove the :only
> e.g.
> people.pages.report_table(:all,
> :include => :people )

Ut oh. That doesn't sound good. Can you file a ticket using the
ruport / blinky account?

http://stonecode.svnrepository.com/ruport/trac.cgi

Reply all
Reply to author
Forward
0 new messages