You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Kaminari 1.0.1 has a problem with its view generator, this trips up the 02-pretty.rb template:
rails new searchapp --skip --skip-bundle --template https://raw.github.com/elastic/elasticsearch-rails/master/elasticsearch-rails/lib/rails/templates/02-pretty.rb
[…]
generate kaminari:views
/home/chris/.rvm/gems/ruby-2.4.1@elasticsearch_demo/gems/kaminari-core-1.0.1/lib/generators/kaminari/views_generator.rb:114:in `initialize': No such file or directory @ rb_sysopen - https://api.github.com/repos/amatsuda/kaminari_themes/git/refs/heads/master (Errno::ENOENT)
from /home/chris/.rvm/gems/ruby-2.4.1@elasticsearch_demo/gems/kaminari-core-1.0.1/lib/generators/kaminari/views_generator.rb:114:in `open'
from /home/chris/.rvm/gems/ruby-2.4.1@elasticsearch_demo/gems/kaminari-core-1.0.1/lib/generators/kaminari/views_generator.rb:114:in `get_files_in_master'
from /home/chris/.rvm/gems/ruby-2.4.1@elasticsearch_demo/gems/kaminari-core-1.0.1/lib/generators/kaminari/views_generator.rb:40:in `themes'
from /home/chris/.rvm/gems/ruby-2.4.1@elasticsearch_demo/gems/kaminari-core-1.0.1/lib/generators/kaminari/views_generator.rb:29:in `copy_or_fetch'
[…]
Thankfully this has been fixed on Kaminari HEAD, it just hasn’t made it to a release yet, kaminari/kaminari#912
In the meantime, either 02-pretty.rb or the Gemfile can be updated to point directly to the Kiminari commit:
👍 Good find. As you said, this was broken until kaminari released 1.1.0. Since elasticsearch-rails doesn't specify a specific version, it pulls the latest, and applying the 02-pretty.rb template works again now.
Kaminari 1.0.1 has a problem with its view generator, this trips up the
02-pretty.rb
template:Thankfully this has been fixed on Kaminari HEAD, it just hasn’t made it to a release yet, kaminari/kaminari#912
In the meantime, either
02-pretty.rb
or theGemfile
can be updated to point directly to the Kiminari commit:And thanks for the templates, they’re a great introduction to using Elasticsearch!
The text was updated successfully, but these errors were encountered: