leikind / wice_grid

A Rails grid plugin to create grids with sorting, pagination, and (automatically generated) filters
MIT License
537 stars 213 forks source link

Could not find generator wice_grid:install. #160

Closed skaslay closed 10 years ago

skaslay commented 10 years ago

I am using rails v3.0.9, ruby v1.9.2 and wice_grid v3.0.4 This is my gemfile

gem 'rails', '3.0.9'
gem 'gravatar_image_tag', '0.1.0'
gem 'will_paginate', '3.0.pre2'
gem 'haml', '~>3.1.2'
gem 'sass', '~>3.1.7'
gem 'compass', '~>0.11.5'
gem 'newrelic_rpm'
gem 'paperclip'
gem 'aws-sdk'
gem 'omniauth-linkedin-oauth2'
gem 'linkedin-oauth2'
gem 'linkedin'
gem 'jquery-rails', '~>2.1'
gem 'rails3-jquery-autocomplete'
gem 'rest-client'
gem 'multimap'
gem 'ransack'
gem 'mailboxer'
gem 'delayed_job_active_record'
gem 'chartkick'
gem "wice_grid", '3.0.4'

gem 'pg', :group => :production

group :development, :test do
  gem 'rspec-rails', '2.6.1'
end

group :development do
   gem 'annotate', '2.4.0'
   gem 'faker', '0.3.1'
   gem 'sqlite3'
end

group :test do
  gem 'webrat', '0.7.1'
  gem 'factory_girl_rails', '1.0'
end

After updating my gemfile I run the bundle command which runs successfully. Later, when I run

rails generate wice_grid:install

I get the error Could not find generator wice_grid:install.

leikind commented 10 years ago

Please post your Gemfile.lock

By the way, wice_grid won't work when will_paginate is loaded

skaslay commented 10 years ago

Heres my Gemfile.lock

  remote: http://rubygems.org/
  specs:
    abstract (1.0.0)
    actionmailer (3.0.9)
      actionpack (= 3.0.9)
      mail (~> 2.2.19)
    actionpack (3.0.9)
      activemodel (= 3.0.9)
      activesupport (= 3.0.9)
      builder (~> 2.1.2)
      erubis (~> 2.6.6)
      i18n (~> 0.5.0)
      rack (~> 1.2.1)
      rack-mount (~> 0.6.14)
      rack-test (~> 0.5.7)
      tzinfo (~> 0.3.23)
    activemodel (3.0.9)
      activesupport (= 3.0.9)
      builder (~> 2.1.2)
      i18n (~> 0.5.0)
    activerecord (3.0.9)
      activemodel (= 3.0.9)
      activesupport (= 3.0.9)
      arel (~> 2.0.10)
      tzinfo (~> 0.3.23)
    activeresource (3.0.9)
      activemodel (= 3.0.9)
      activesupport (= 3.0.9)
    activesupport (3.0.9)
    annotate (2.4.0)
    arel (2.0.10)
    aws-sdk (1.48.1)
      json (~> 1.4)
      nokogiri (>= 1.4.4)
    builder (2.1.2)
    carrierwave (0.5.8)
      activesupport (~> 3.0)
    chartkick (1.3.2)
    chunky_png (1.3.1)
    climate_control (0.0.3)
      activesupport (>= 3.0)
    cocaine (0.5.4)
      climate_control (>= 0.0.3, < 1.0)
    compass (0.11.7)
      chunky_png (~> 1.2)
      fssm (>= 0.2.7)
      sass (~> 3.1)
    delayed_job (4.0.2)
      activesupport (>= 3.0, < 4.2)
    delayed_job_active_record (4.0.1)
      activerecord (>= 3.0, < 4.2)
      delayed_job (>= 3.0, < 4.1)
    diff-lcs (1.1.3)
    erubis (2.6.6)
      abstract (>= 1.0.0)
    factory_girl (1.3.3)
    factory_girl_rails (1.0)
      factory_girl (~> 1.3)
      rails (>= 3.0.0.beta4)
    faker (0.3.1)
    faraday (0.9.0)
      multipart-post (>= 1.2, < 3)
    ffi (1.9.3-x86-mingw32)
    foreigner (1.6.1)
      activerecord (>= 3.0.0)
    fssm (0.2.10)
    gravatar_image_tag (0.1.0)
    haml (3.1.8)
    hashie (2.0.5)
    i18n (0.5.4)
    jquery-rails (2.3.0)
      railties (>= 3.0, < 5.0)
      thor (>= 0.14, < 2.0)
    json (1.8.1)
    jwt (1.0.0)
    linkedin (0.4.7)
      hashie (~> 2.0)
      multi_json (~> 1.0)
      oauth (~> 0.4)
    linkedin-oauth2 (0.1.1)
      hashie (>= 1.2, < 2.1)
      multi_json (~> 1.0)
      oauth2 (~> 0.8)
    mail (2.2.20)
      activesupport (>= 2.3.6)
      i18n (>= 0.4.0)
      mime-types (~> 1.16)
      treetop (~> 1.4.8)
    mailboxer (0.11.0)
      carrierwave (>= 0.5.8)
      foreigner (>= 0.9.1)
      rails (> 3.0.0)
    mime-types (1.25.1)
    mini_portile (0.6.0)
    multi_json (1.10.1)
    multi_xml (0.5.5)
    multimap (1.1.3)
    multipart-post (2.0.0)
    netrc (0.7.7)
    newrelic_rpm (3.9.0.229)
    nokogiri (1.6.3.1)
      mini_portile (= 0.6.0)
    nokogiri (1.6.3.1-x86-mingw32)
      mini_portile (= 0.6.0)
    oauth (0.4.7)
    oauth2 (0.9.4)
      faraday (>= 0.8, < 0.10)
      jwt (~> 1.0)
      multi_json (~> 1.3)
      multi_xml (~> 0.5)
      rack (~> 1.2)
    omniauth (1.2.2)
      hashie (>= 1.2, < 4)
      rack (~> 1.0)
    omniauth-linkedin-oauth2 (0.1.5)
      omniauth (~> 1.0)
      omniauth-oauth2
    omniauth-oauth2 (1.1.2)
      faraday (>= 0.8, < 0.10)
      multi_json (~> 1.3)
      oauth2 (~> 0.9.3)
      omniauth (~> 1.2)
    paperclip (4.2.0)
      activemodel (>= 3.0.0)
      activesupport (>= 3.0.0)
      cocaine (~> 0.5.3)
      mime-types
    pg (0.17.1)
    pg (0.17.1-x86-mingw32)
    polyamorous (1.0.0)
      activerecord (>= 3.0)
    polyglot (0.3.5)
    rack (1.2.8)
    rack-mount (0.6.14)
      rack (>= 1.0.0)
    rack-test (0.5.7)
      rack (>= 1.0)
    rails (3.0.9)
      actionmailer (= 3.0.9)
      actionpack (= 3.0.9)
      activerecord (= 3.0.9)
      activeresource (= 3.0.9)
      activesupport (= 3.0.9)
      bundler (~> 1.0)
      railties (= 3.0.9)
    rails3-jquery-autocomplete (1.0.14)
      rails (>= 3.0)
    railties (3.0.9)
      actionpack (= 3.0.9)
      activesupport (= 3.0.9)
      rake (>= 0.8.7)
      rdoc (~> 3.4)
      thor (~> 0.14.4)
    rake (10.3.2)
    ransack (1.2.3)
      actionpack (>= 3.0)
      activerecord (>= 3.0)
      activesupport (>= 3.0)
      i18n
      polyamorous (~> 1.0.0)
    rdoc (3.12.2)
      json (~> 1.4)
    rest-client (1.7.2)
      mime-types (>= 1.16, < 3.0)
      netrc (~> 0.7)
    rest-client (1.7.2-x86-mingw32)
      ffi (~> 1.9)
      mime-types (>= 1.16, < 3.0)
      netrc (~> 0.7)
    rspec (2.6.0)
      rspec-core (~> 2.6.0)
      rspec-expectations (~> 2.6.0)
      rspec-mocks (~> 2.6.0)
    rspec-core (2.6.4)
    rspec-expectations (2.6.0)
      diff-lcs (~> 1.1.2)
    rspec-mocks (2.6.0)
    rspec-rails (2.6.1)
      actionpack (~> 3.0)
      activesupport (~> 3.0)
      railties (~> 3.0)
      rspec (~> 2.6.0)
    sass (3.1.21)
    sqlite3 (1.3.9)
    sqlite3 (1.3.9-x86-mingw32)
    thor (0.14.6)
    treetop (1.4.15)
      polyglot
      polyglot (>= 0.3.1)
    tzinfo (0.3.40)
    webrat (0.7.1)
      nokogiri (>= 1.2.0)
      rack (>= 1.0)
      rack-test (>= 0.5.3)
    wice_grid (3.0.4)
    will_paginate (3.0.pre2)

PLATFORMS
  ruby
  x86-mingw32

DEPENDENCIES
  annotate (= 2.4.0)
  aws-sdk
  chartkick
  compass (~> 0.11.5)
  delayed_job_active_record
  factory_girl_rails (= 1.0)
  faker (= 0.3.1)
  gravatar_image_tag (= 0.1.0)
  haml (~> 3.1.2)
  jquery-rails (~> 2.1)
  linkedin
  linkedin-oauth2
  mailboxer
  multimap
  newrelic_rpm
  omniauth-linkedin-oauth2
  paperclip
  pg
  rails (= 3.0.9)
  rails3-jquery-autocomplete
  ransack
  rest-client
  rspec-rails (= 2.6.1)
  sass (~> 3.1.7)
  sqlite3
  webrat (= 0.7.1)
  wice_grid (= 3.0.4)
  will_paginate (= 3.0.pre2)

Is there any way around using it with will_paginate installed because I am not using will_paginate on the same page where I'll be using wice_grid

leikind commented 10 years ago

what is the output of bundle exec rails g | grep wice

skaslay commented 10 years ago

The output of that command in command prompt is

'grep' is not recognized as an internal or external command, operable program or batch file.

On Thu, Jul 24, 2014 at 3:48 PM, Yuri Leikind notifications@github.com wrote:

what is the output of bundle exec rails g | grep wice

— Reply to this email directly or view it on GitHub https://github.com/leikind/wice_grid/issues/160#issuecomment-50075934.

Regards, Sarvesh Kaslay

skaslay commented 10 years ago

Sorry but I'm using Win 7 and hence don't have the grep tool

skaslay commented 10 years ago

I ran this command in the windows console. FINDSTR is an alternative for grep in windows

bundle exec rails generate | FINDSTR wice

and got this result

  wice_grid:wice_grid_assets_jquery
  wice_grid:wice_grid_assets_prototype
leikind commented 10 years ago

I didn't notice in the beginning that you are using a very ancient version of the plugin - 3.0.4. There is no wice_grid:install in 3.0.4

skaslay commented 10 years ago

Oh ya I'm using Rails 3.0.9 thats why I'm using wice_grid v3.0.4.

So how do I proceed after installing wice grid?

On Thu, Jul 24, 2014 at 5:28 PM, Yuri Leikind notifications@github.com wrote:

I didn't notice in the beginning that you are using a very ancient version of the plugin - 3.0.4. There is no wice_grid:install in 3.0.4

— Reply to this email directly or view it on GitHub https://github.com/leikind/wice_grid/issues/160#issuecomment-50086827.

Regards, Sarvesh Kaslay

leikind commented 10 years ago

Find the README file in the gem and follow these instructions

skaslay commented 10 years ago

OK will filtering the README by the tag 3.0.1 do the trick because I cant find 3.0.4 tag and Filtering the branches by Rails3 brings up the wice_grid 3.4.2 README.

leikind commented 10 years ago

What are you doing?

The README file is in the gem. In your app. bundle open wice_grid

skaslay commented 10 years ago

I was looking for the README file on github. Thanks a lot for your help.