Note that there are some explanatory texts on larger screens.

plurals
  1. POfancygrid issue rails
    primarykey
    data
    text
    <p>In gem file </p> <pre><code>gem 'fancygrid', '2.0.1', :path =&gt; 'lib/fgrid' </code></pre> <p>copied the source from <a href="https://github.com/giniedp/fancygrid" rel="nofollow">https://github.com/giniedp/fancygrid</a> into lib/fgrid</p> <p>In Controllers:</p> <pre><code> @contacts = current_user.contacts.where(:status =&gt; 0).page(params[:page]).per_page(15).search(params[:search]) fancygrid_for :contacts, :builder =&gt; ContactsGridBuilder, :persist =&gt; true do |g| # specify attributes to display # g.attributes :email_id, :name # specify the callback url for ajax loading g.ajax_url = contacts_path # finally call find to query the data g.find do |query| query.where("user_id = ?", current_user.id).order(:name) end </code></pre> <p>Getting error</p> <pre><code>ActionView::Template::Error (Missing template fancygrid/fancygrid with {:handlers=&gt;[:erb, :builder, :slim, :arb, :coffee], :formats=&gt;[:html], :locale=&gt;[:en, :en]}. Searched in: * "/home/love/rails/odbf11/app/views" * "/home/love/.rvm/gems/ruby-1.9.3-p194/gems/activeadmin-0.5.1/app/views" * "/home/love/.rvm/gems/ruby-1.9.3-p194/gems/kaminari-0.14.1/app/views" * "/home/love/.rvm/gems/ruby-1.9.3-p194/gems/devise_invitable-1.1.6/app/views" * "/home/love/.rvm/gems/ruby-1.9.3-p194/gems/devise-2.2.3/app/views" * "/home/love/.rvm/gems/ruby-1.9.3-p194/gems/maktoub-0.2.5/app/views" * "/home/love/rails/odbf11/lib/fgrid/app/views" ): 28: 29: &lt;span id="contact_list"&gt; 30: 31: &lt;%= fancygrid :contacts %&gt; 32: 33: 34: lib/fgrid/lib/fancygrid/view/helper.rb:10:in `fancygrid' app/views/contacts/index.html.erb:31:in `_app_views_contacts_index_html_erb__33025325_105720290' app/controllers/contacts_controller.rb:27:in `block (2 levels) in index' app/controllers/contacts_controller.rb:26:in `index' config/initializers/quiet_assets.rb:7:in `call_with_quiet_assets' </code></pre> <p>Please suggest me what to do</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload