<collection: replace>
<table-plus with="&@venues" fields="&flist">
....
class MyVenuesController < ApplicationController
hobo_model_controller
auto_actions :all
def index
@my_venues = find_instance
@venues = @my_venues.apply_scopes(:search => [params[:search], :name],
:order_by => parse_sort_param(:name, :local_area, :status))
end
end
the error is on the 'find_instance'. I assume this is something to do with me trying to get the table displayed on MyVenues index, but I don't understand why the id is missing when this is in the MyVenues model and controller.
Cheers, Anthony.
def index
hobo_index do
self.this = self.this.include(:local_area)
self.this = self.this.search(params[:search], :user_id, :name) if params[:search]
self.this = self.this.order_by(parse_sort_param(:local_area.name)) if params[:sort]
end
end