I added this code to my mydbs_controller.rb
as instructed on the Rails tutorial:
def create
@mydbs = Mydb.new(params[:mydb])
@mydb.save
redirect_to @mydb
end
I run my database and come up with this error:
The controller-level `respond_to' feature has been extracted to the `responders` gem. Add it to your Gemfile to continue using this feature: gem 'responders', '~> 2.0' Consult the Rails upgrade guide for details.
So I added gem 'responders', '~> 2.0' to my gemfile and tried a bundle install.
I run into another error telling me
Make sure that
gem install responders -v '2.1.0'
succeeds before bundling.
After running that I'm left with yet another error
ERROR: Could not find a valid gem 'responders' (= 2.1.0), here is why: Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state =SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)
I meet same question. Then I change the gem source from " https://rubygems.org/ " to " http://rubygems.org/ "
So my problem was that i needed to be running on ruby version 2.2.2. However that update (only for windows users) pulled a lot of errors that I found to not appear on the mac.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.