Hello,
I am referring the link below for creating the ruby reports.For creation of report_table, query is used for selecting only particular table.If i query the report_table, am getting error as "undefined method slice! for Hash".
Ex:
1. Author.report_t able(:all, :only => ['id','name'])
If i use like this.I am getting error.
2. Author.report_t able
If i use like this,its working properly.
I want to select only particular column from table.Please help me to do this.Its urgent.Thanks
http://www.oreillynet. com/pub/a/ruby/2008/04/08/ruport-business-reporting-for-ruby.html?page= 1
I am referring the link below for creating the ruby reports.For creation of report_table, query is used for selecting only particular table.If i query the report_table, am getting error as "undefined method slice! for Hash".
Ex:
1. Author.report_t able(:all, :only => ['id','name'])
If i use like this.I am getting error.
2. Author.report_t able
If i use like this,its working properly.
I want to select only particular column from table.Please help me to do this.Its urgent.Thanks
http://www.oreillynet. com/pub/a/ruby/2008/04/08/ruport-business-reporting-for-ruby.html?page= 1
Comment