Railsinstaller 3.2.0 with ruby 2.2.3 on windows - ruby-on-rails

I am installing rails through railsinstaller 3.2.0.exe file on my window but with this file I got ruby version 2.2.4 and i need ruby version 2.2.3.
Is it possible to change the ruby or rails version with railsinstaller package?

Related

Just installed Rails 6 and am getting an odd error

installed ruby 2.6.4 and rails 6.0.0 using rbenv on a mac running Mojave 10.14.6 to evaluate upgrading a legacy app. rails -v returns `
Rails 6 requires Ruby 2.5.0 or newer.
You're running
ruby 2.3.7p456 (2018-03-28 revision 63024) [universal.x86_64-darwin18]
Please upgrade to Ruby 2.5.0 or newer to continue.`
however ruby -v returns ruby 2.6.4p104 (2019-08-28 revision 67798) [x86_64-darwin18]
I currently have the following versions of ruby installed
ruby-2.2.6
ruby-2.3.8
* ruby-2.6.4
which ruby returns
/Users/jerryzornes/.rubies/ruby-2.6.4/bin/ruby
and my bundler version is 2.0.2
So I have no idea as to what's going on.
In the root folder of your Rails app make sure you have a file named .ruby-version that contains the text ruby-2.6.4. This is used by rbenv to make sure the right version of ruby is used.
You can also run which ruby to see where it is loading ruby from. If this isn't running from /Users/jerryzornes/.rubies/..., then the issue is with your rbenv install. I would check you path variable to make sure it has the rbenv shims in place, ie looks like ~/.rbenv/shims:/usr/local/bin:/usr/bin:/bin

How to change ruby current version by using Capistrano?

We are using ruby version 1.8.7 in our staging server but we need to have ruby 2.4.0 to install rails 5.0. We have installed both versions of ruby, i.e., ruby 1.8.7 and 2.4.0 by RVM through Capistrano.
We have tried to change the ruby version from 1.8.7 to 2.4.0 to install rails 5.0.
But the problem is the ruby version does not change to 2.4.0.
Capistrano version: 2.15.4.
What do we need to do to change the ruby version to 2.4.0 and install Rails 5.0 in staging by Capistrano?

In RubyMine: "Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3 (Bundler::RubyVersionMismatch)"

I've created a ruby on rails project with rails composer. I can run the project from terminal, but when I open it in RubyMine, it's showing this error
Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3 (Bundler::RubyVersionMismatch)
I have checked my ruby version using 'ruby -v' and it says
ruby 1.9.3p0 (2011-10-30 revision 33570) [i686-linux]
My rails version using 'rails -v'
Rails 3.2.13
However, when I open the project in RubyMine(version: 5.4.1) it says
/path/to/my/.rvm/gems/ruby-2.0.0-p195#global/gems/bundler-1.3.5/lib/bundler/definition.rb:361:in `validate_ruby!': Your Ruby version is 2.0.0, but your Gemfile specified 1.9.3 (Bundler::RubyVersionMismatch)
The SDK version in RubyMine is showing 'RVM: ruby-2.0.0-p195' and the language level is 1.9
I have checked other threads on this error, but none of them was working in terminal and showing error in RubyMine. How can I solve this?
In RubyMine you can manage multiple SDKs, meaning ruby version and gemset.
Obviously you selected a SDK with ruby-2.0.0-p195.
The language level only defines the syntax higliting and command completion help etc. say the support of the IDE, but not the ruby version used for the project.
So you should select a different SDK (or create it first, but as you use rmv and RubyMine knows rmv, you should see all your SDKs)
If ruby-1.9.3 is your system default, you might install the same version again with rvm to make it available for RubyMine
rvm install ruby-1.9.3
and then select it in RubyMine.

railsinstaller for windows 7 with ruby > 1.9.3

is it possible to install rails on windows 7 (64bit) with ruby version higher than 1.9.3?
Rails installer seems to be a little bit out-dated, it comes with ruby 1.9.3-p125.
Version 2.2.2 was recently released with a higher patch level of 1.9.3. Additionally, you can grab the prerelease of RailsInstaller 3.0.0 with Ruby 2.0.0 from Github.
Evan

Which version of Rails works with Ruby 1.8.5

I have a web server that hosts Ruby version 1.8.5. Which version of Rails is compatible with that version of Ruby? On the Rails site, it says that the pre-requisite for running Rails 3.0 is Ruby 1.8.7. Does Rails 3.0 work at all with versions prior to 1.8.7?
Any help appreciated.
From their site:
We recommend Ruby 1.8.7 or Ruby 1.9.2 for use with Rails. Ruby 1.8.6 and earlier are not supported, neither is version 1.9.1.
Which means, sure, you can use it. But you're on your own if it doesn't work correctly.

Resources