Problems with Hobo Data Tables

56 views
Skip to first unread message

Bob Sleys

unread,
Aug 23, 2012, 10:12:02 AM8/23/12
to hobo...@googlegroups.com
I'd like to use Hobo Data Tables per http://cookbook-1.4.hobocentral.net/api_plugins/hobo_data_tables

First off I install jquery-datatables-rails fine and then ran hobo generate install_plugin hobo_tree_table git://github.com/Hobo/hobo_data_tables.git per the instructions which yielded the following error

Could not find gem 'hobo_tree_table (>= 0) ruby' in git://github.com/Hobo/hobo_data_tables.git (at master).
Source does not contain any versions of 'hobo_tree_table (>= 0) ruby'

I ended up changing the command to 
hobo generate install_plugin hobo_data_tables git://github.com/Hobo/hobo_data_tables

Which completed fine and changed all references in the js, css and dryml files from hobo_tree_table to hobo_data_tables but I now get the following error when running my app

NameError in Front#index

Showing /home/bob/Titanium_Studio_Workspace/fitness/app/views/front/index.dryml where line #1 raised:

uninitialized constant HoboDataTables

Extracted source (around line #1):

1: <page title="Home">
2: 
3:   <body: class="front-page"/>
4: 

At this point I'm stuck.  Any ideas?

Bob

Bryan Larsen

unread,
Aug 23, 2012, 1:50:00 PM8/23/12
to hobo...@googlegroups.com
>
> I ended up changing the command to
> hobo generate install_plugin hobo_data_tables
> git://github.com/Hobo/hobo_data_tables

Doh! I thought I fixed that typo. I'm glad you figured it out.

> uninitialized constant HoboDataTables
>

That's very strange. Do you have the plugin in your Gemfile and have
you done bundle install?

Bob Sleys

unread,
Aug 23, 2012, 2:13:51 PM8/23/12
to hobo...@googlegroups.com
Ok I had everything in there but noticed I had two group :assets do sections.  I combined them into one and cleaned up the gemfile a bit and and another bundle install and now at least I can get to the app.  Now to try the data table out.

Thanks and sorry for the aparent false alarm

Bob

Bob Sleys

unread,
Aug 23, 2012, 7:13:59 PM8/23/12
to hobo...@googlegroups.com
Ok I'm getting a basic data table, it unsortable etc yet but at least its something.

How do I pass off options to the data table?

I tried the following, along with some other attempts but haven't gotten anything to work.  So for example to change the titles of the columns in the table.

 <table-plus fields="this, equipment, submitted_by, status, technician"  aoColumnDefs="{'sTitle': 'DESC', 'EQP', 'BY','TECH'}" />

Bob
Reply all
Reply to author
Forward
0 new messages