ruby

Tag Archives: ruby

Latest In Ruby On Rails 4 15May, 2015

Latest In Ruby On Rails 4

The knowledge sharing platform BitsNTricks brings another piece of information for you. Below are some new features added in Ruby On Rails 4. 1. No more vendor/plugins: The vendor/plugins directory has been removed in Rails 4. Now, you can use Bundler with a path or Git dependencies. 2. Many deprecated items are moved into separate gems: Rails 4 has deprecated many things and has moved them into separate gems. 3. Live Streaming: Before Rails 4, streaming was limited to templates only, but now its real time streaming. It is now supported via Rails. HTTP streaming is the process of doling out the response to a request over a period of time, rather than all at once. It’s often used for media…

How could we run multiple Rails Projects of different versions on a same server? 28Oct, 2014

How could we run multiple Rails Projects of different versions on a same server?

RVM works with OS and Passenger to set the conditions of the current execution. For example, when you change the directories from one project directory to another with the cd command, rvm uses either the .rvmrc or the .rbenv file to see which ruby and which set of gems you want to use, and makes them the current set. In that manner, it sets only one version at a time, because you can be in one project at a time. Every request handled by a web server can only use a single version of ruby to satisfy that request, just as the single user sitting at the keyboard can use a single version of ruby only. But since every request…