New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue with View Generator #911
Comments
Here are the steps that I went through to reproduce the issue in irb (code from kaminari/kaminari-core/lib/generators/kaminari/views_generator.rb) sha = open('https://api.github.com/repos/amatsuda/kaminari_themes/git/refs/heads/master') do |json|
puts json.inspect
end Here, I received the same error: No such file or directory @rb_sysopen. If I do the same code, but first put in require 'open-uri' I am able to pull the JSON response. I am not sure if there is a missing dependency, or if I just need to add something to my rails project itself to get the generator to work, though. |
I just confirmed this bug. It seems like there was a dependency in Rails (or related) that required |
fixed by #912 |
Uh, it is not working out of the box. I am getting an error like this:
Before you suggest it is the Ruby version. I used this on another application with the same Ruby version and it worked. |
In your Gemfile, are you pulling from the github repo directly? From what I can tell, the rubygem itself has not been updated yet since the version is still 1.0.1, which was the version number before I submitted the PR. |
I did a bundle install to this gem:
|
Try changing it to the following:
From there, re-issue a Edit: fixed the gem line in case someone else reads this. |
I get this error when I try that:
|
Sorry, typo:
|
that worked @jvsoares , thank you! |
We have just released a new version 1.1.0, which has fixes for this issue. Thanks folks for sticking around! |
@jvsoares worked |
The command below throws an error:
rails g kaminari:views
My environment is ruby 2.4.0, rails 5.1.3, and kaminari 1.0.1. The error is as follows:
views_generator.rb:114:in `initialize': No such file or directory @ rb_sysopen
Any thoughts on what could be going on with this?
The text was updated successfully, but these errors were encountered: