undefined method `owner_id' for nil:NilClass in Pages Controller
Started GET "/me/pages" for 127.0.0.1 at 2019-05-05 16:40:03 -0700
Processing by Me::PagesController#index as JS
Parameters: {"filter"=>""}
^[[1m^[[32mSphinx^[[0m Unexpected search options: [:include, :without_all, :sort_mode]
Completed 500 Internal Server Error in 190ms (ActiveRecord: 7.1ms)
ActionView::Template::Error (undefined method `owner_id' for nil:NilClass):
5:
6: - style_from_path = case @path.try(:arg_for, 'view'); when 'compact' then 'table'; when 'detailed' then 'rows'; when 'grid' then 'grid'; end
7: - style = local_assigns[:style] || style_from_path || 'table'
8: - pages = local_assigns[:pages] ||= @pages.select{|page| page.owner_id and page.owner_name != 'none'}
9: - paginate = false # pages.respond_to?(:total_entries)
10: - paginate_options ||= {}
11: - classes = ['page_list', ('table-responsive' if style == 'table'), (style if style != 'table')]
app/views/common/pages/_list.html.haml:8:in `block in _app_views_common_pages__list_html_haml___1771711851550738962_51930900'
app/views/common/pages/_list.html.haml:8:in `_app_views_common_pages__list_html_haml___1771711851550738962_51930900'
app/views/common/pages/search/index.js.rjs:9:in `block in _app_views_common_pages_search_index_js_rjs___1614024140472559177_73112080'
app/views/common/pages/search/index.js.rjs:1:in `_app_views_common_pages_search_index_js_rjs___1614024140472559177_73112080'
app/controllers/common/application/before_filters.rb:6:in `render'
app/controllers/me/pages_controller.rb:14:in `index'