I'm not a Rails person, but does your `files` value contain the directory you're looking for?
https://github.com/AirspaceTechnologies/clever_table/blob/master/clever_table. gemspec#L16 On Apr 20 2016, at 9:28 pm, Guyren Howe <[email protected]> wrote: > I have created a gem, my very first one. > > > > You do this: > > > @users = UsersView.all > > @table = CleverTable::CleverTable.new(@users, > params, > 'Firstname' => :first_name, > 'Last Name' => :last_name, > 'Email' => :email, > 'State' => :state, > 'City' => :city, > 'Role' => :role, > 'Status' => :status, > > :per_page => 50, > :unique => :id, > :row_link => ->(x) { user_path(x) }, > :controller => self) > > > and then this: > > > > > <div class="panel panel-default"> > <div class="panel-body"> > <div class="row"> > <div class="col-md-12 col-md-offset-1"> > <%= @table.pagination %> > </div> > </div> > <div class="row"> > <div class="col-md-10 col-md-offset-1"> > <%= @table.render %> > </div> > <div class="row"> > <div class="col-md-12 col-md-offset-1"> > <%= @table.pagination %> > </div> > </div> > </div> > </div> > </div> > > > and you get this great sortable, searchable, paginated view of your data. Trust me, it's sweet. > > > > But you're going to have to trust me, because it doesn't work. The reason is that the gem's assets are not being included in the application. I can't get them to load in the gem's tests, and I can't get them to load in an application where I want to use it. > > > > Anyway, it's at: > > > > <https://github.com/AirspaceTechnologies/clever_table> > > > > I'm sure it's some simple declaration somewhere, but I've spent *way* too many hours googling and looking at other gems, and I can't see what I'm doing wrong. > > \-- \-- SD Ruby mailing list [email protected] <http://groups.google.com/group/sdruby> \--- You received this message because you are subscribed to the Google Groups "SD Ruby" group. To unsubscribe from this group and stop receiving emails from it, send an email to [[email protected]](mailto:sdruby+unsubscribe@googl egroups.com). For more options, visit <https://groups.google.com/d/optout>. -- -- SD Ruby mailing list [email protected] http://groups.google.com/group/sdruby --- You received this message because you are subscribed to the Google Groups "SD Ruby" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
