ruby-3 Questions
6
Solved
I want to download the latest Ruby release(version 3.0.0), using RVM but I am faced with the following error when running rvm install 3.0.0:
Unknown ruby interpreter version (do not know how to han...
2
Solved
After updating my Rails application from Rails 6.0.1 to Rails 7.0.2.3
I am getting issue with the gem "paperclip", '~> 6.1.0'
while using it in application is gives error:
ActionView::...
Perlie asked 24/4, 2022 at 18:29
4
Solved
I could use some help here. I'm setting up a new 2020 Macbook Pro M1.
I've completed all the regular steps to install ruby/rails on a Mac, however I'm unable to complete rails new. Upon hitting the...
Lowlife asked 2/11, 2021 at 8:13
2
I have
Ruby 3.0.4
Rails 6.1.7
pg 1.4.5
postgresql 14.6
Here is my database.yml file
development:
adapter: postgresql
encoding: utf8
database: olio_development
username: postgres
password: password...
Quincuncial asked 26/1, 2023 at 13:52
4
Solved
I've recently started using Ruby 3 more and it seems the home key (to take me to the beginning of the line) the end key (end of the line) and ctrl-u (clear the line) aren't working.
I'm running Arc...
2
Solved
While trying to run the "irb", I ran into this error:
<internal:/usr/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- rdoc (LoadError)
...
1
Before ruby 3 it was possible to do sth like this
def test a, **o
p a, o
end
t = [:ok, **{ok: 2}]
test *t
it would properly assign
:ok to a
and {ok: 2} to o
invoking in ruby 3
you will get
Argume...
1
Solved
I have the following Gemfile:
source "https://rubygems.org"
ruby "3.1.2"
gem "libev_scheduler", "~> 0.2"
and the following Ruby code in a file called m...
Barytone asked 14/9, 2022 at 21:32
5
Solved
After upgrade to ruby 3 and rails 6.1 my tests break on the line
subject.avatar.attach(fixture_file_upload(Rails.root.join('spec', 'fixtures', 'images', 'avatar.jpg')))
with:
NoMethodError:
undef...
Deficiency asked 9/1, 2021 at 9:24
4
I'm very happy to be using the most recent ruby 3.0; as well as having access to the updated command-line interpreter which does syntax highlighting and coloring.
However, the colors are a bit hard...
Briarwood asked 2/3, 2021 at 21:22
1
Solved
Ruby 3.0.1
Rails 6.1.3.2
Executing a Paypal OrdersCreateRequest fails with this error
NoMethodError (undefined method `escape' for URI:Module):
The backtrace points to .rvm/gems/ruby-3.0.1/gems/pa...
2
Solved
I have a project I'm trying to use ruby 3 (previously running with 2.7.2), but couldn't accomplish it.
After updated my gemfile with the ruby version and ran bundle, I'm receiving this error when t...
Liggins asked 7/1, 2021 at 17:25
3
Solved
I've created a new Rails 6.1 application from scratch with Ruby 3.0.0.
I've run db:create and generated a single model with some string columns, followed by rails db:migrate.
I ran rails test but g...
Gallicism asked 28/12, 2020 at 15:19
1
Solved
When I try to update our site to Ruby 3.0.0 I get this error:
ArgumentError (wrong number of arguments (given 2, expected 1))
% rails console
Loading development environment (Rails 6.1.0)
irb(main...
Biparous asked 27/12, 2020 at 19:33
1
© 2022 - 2024 — McMap. All rights reserved.