Warning: count(): Parameter must be an array or an object that implements Countable in C:\xampp\htdocs\vadoo.co.uk\blog\wp-includes\kses.php on line 831

Install #RubyOnRails 2.3.3 with Windows 10 and XAMPP


Use RailsInstaller.exe Version 2.3.3 from RailsInstaller.org

The installation itself works fine, but alas this is not the end of the story; the proverbial rabbit-hole.

They have an error in their .bat files \…Install\Ruby2.3.0\bin. Change the path of …\ruby.exe in the .bat to your local PATH, e.g. C:\RailsInstaller\Rub2.3.0\bin\…


and far more seriously: after you have created your new project [rails new <project-name>] and made any required tweaks to the gemfile and the database.yml, you need to naturally start the server, but this install version which uses puma [http server] doesn’t seem to invoke it? Fix with:

bundle exec rails s puma

as a server start.  rails s  will complain on its own !

Another solution is to downgrade your version of rails to a more stable version .e.g. 4.2.6 and this is what I did:

gem uninstall rails

gem uninstall railties

gem install rails -v 4.2.6

THEN everything works fine using rails s as a server start ! As a side note: if you are planning on installing third party Gems such as Spree [eCommerce Shop] then you’ll want to do this downgrade.

Final point when it comes to creating new sites:

Better to use rails new <project-name> -d mysql so your system is set up with MySQL by default, e.g. your database.yml file should look something like this:

default: &default
 adapter: mysql2
 encoding: utf8
 username: <user>
 password: <password>
 # pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %>
 # timeout: 5000
 port: 3306

 <<: *default
 database: <mySQL database> e.g. bookshop
 #database: db/development.sqlite3

 <<: *default
 database: <mySQL database> e.g. bookshop_test
 #database: db/test.sqlite3

 <<: *default
 database: <mySQL database> e.g. bookshop_live 
 #database: db/production.sqlite3

Just to make development a little easier

Let’s say your server is local at It’s much better to start the server with this IP address so that any workstation can see the new Ruby Site with, otherwise you’re restricted to working as localhost:3000

rails s -b

Leave a reply:

Your email address will not be published.

Site Footer