<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>Ruby on Rails for Windows!!!</title><link>https://community.element14.com/products/devtools/technicallibrary/w/documents/9863/ruby-on-rails-for-windows</link><description /><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>Ruby on Rails for Windows!!!</title><link>https://community.element14.com/products/devtools/technicallibrary/w/documents/9863/ruby-on-rails-for-windows</link><pubDate>Fri, 08 Oct 2021 04:52:48 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:e8dbbda8-dd92-4981-83ec-e4273d583e79</guid><dc:creator>DebuggerGuys</dc:creator><comments>https://community.element14.com/products/devtools/technicallibrary/w/documents/9863/ruby-on-rails-for-windows#comments</comments><description>Current Revision posted to Documents by DebuggerGuys on 10/8/2021 4:52:48 AM&lt;br /&gt;
&lt;h1 style="font-size:35px;margin:0.67em 0;font-family:&amp;#39;Museo Slab&amp;#39;;color:#222222;text-align:-webkit-auto;"&gt;&lt;a href="http://data.whicdn.com/images/11477509/tumblr_lemox7bBGQ1qzmq3vo1_500_large.jpg"&gt;&lt;img alt="Tumblr_lemox7bbgq1qzmq3vo1_500_large" class="jiveImage" src="http://data.whicdn.com/images/11477509/tumblr_lemox7bBGQ1qzmq3vo1_500_large.jpg" /&gt;&lt;/a&gt;&lt;/h1&gt;&lt;p style="margin:0;margin:1em 0;color:#555555;font-family:Lato, Helvetica, sans-serif;font-size:16px;text-align:-webkit-auto;"&gt;Setting up a modern Ruby on Rails environment on a Windows computer is a tormenting experience. Even after you set it up, you&amp;#39;ll continue to be plagued by incompatibilities. While it&amp;#39;s possible to write Ruby code that works on any operating system, many programmers ignore the Windows platforms so that some portion of the libraries available to most programmers will not be available to Windows users. Check out &lt;a class="jive-link-external-small" href="http://stackoverflow.com/questions/164896/limitations-in-running-ruby-rails-on-windows" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;this StackOverflow post&lt;/a&gt; for a list of all the incompatibilities and potential problems you might run into with Rails on Windows.&lt;/p&gt;&lt;p style="margin:0;margin:1em 0;color:#555555;font-family:Lato, Helvetica, sans-serif;font-size:16px;text-align:-webkit-auto;"&gt;At one point, I would have told anyone who wanted to seriously learn how to program that they couldn&amp;#39;t do it unless they installed Linux or bought a Mac. Thanks to virtualization technologies, we have much better options today that can give you a pretty great approximation of a Linux computer with a minimal amount of effort.&lt;/p&gt;&lt;h3 style="font-size:1.4em;margin:1em 0;font-family:&amp;#39;Museo Slab&amp;#39;;color:#222222;text-align:-webkit-auto;"&gt;VirtualBox and Vagrant&lt;/h3&gt;&lt;p style="margin:0;margin:1em 0;color:#555555;font-family:Lato, Helvetica, sans-serif;font-size:16px;text-align:-webkit-auto;"&gt;VirtualBox is a tool from Oracle that allows you to create virtual machines on your computer. A virtual machine is essentially a whole new virtual computer inside of your own computer. Unfortunately, configuring and bootstrapping a new virtual machine can be complicated, and that&amp;#39;s where Vagrant comes in.&lt;/p&gt;&lt;p style="margin:0;margin:1em 0;color:#555555;font-family:Lato, Helvetica, sans-serif;font-size:16px;text-align:-webkit-auto;"&gt;Vagrant allows you to specify a &amp;quot;recipe&amp;quot; for a virtual machine inside of a single Vagrantfile and then create and bootstrap your virtual machine with a simple&lt;code style="font-family:monospace, serif;font-size:13px;background-color:#f2f2f2;padding:5px 8px;margin:5px;"&gt;$ vagrant up&lt;/code&gt; command. I would highly recommend watching Ryan Bate&amp;#39;s &lt;a class="jive-link-external-small" href="http://railscasts.com/episodes/292-virtual-machines-with-vagrant" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;Railscast on Vagrant&lt;/a&gt; to get a more clear picture of how you use Vagrant. The official documentation for Vagrant is very well written and easy to understand as well, check it out at &lt;a class="jive-link-external-small" href="http://vagrantup.com/" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;http://vagrantup.com&lt;/a&gt;&lt;/p&gt;&lt;h3 style="font-size:1.4em;margin:1em 0;font-family:&amp;#39;Museo Slab&amp;#39;;color:#222222;text-align:-webkit-auto;"&gt;Setting Up Your Rails Environment&lt;/h3&gt;&lt;ol style="margin:1em 0;padding:0 0 0 40px;color:#222222;font-family:Lato, Helvetica, sans-serif;font-size:16px;text-align:-webkit-auto;"&gt;&lt;li&gt;Install VirtualBox: &lt;a class="jive-link-external-small" href="https://www.virtualbox.org/wiki/Downloads" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;https://www.virtualbox.org/wiki/Downloads&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Install Vagrant: &lt;a class="jive-link-external-small" href="http://downloads.vagrantup.com/tags/v1.0.3" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;http://downloads.vagrantup.com/tags/v1.0.3&lt;/a&gt;&lt;/li&gt;&lt;li&gt;Download this Vagrantfile into the directory you&amp;#39;re going to code in:&lt;a class="jive-link-external-small" href="http://bloc.s3.amazonaws.com/Vagrantfile" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;http://bloc.s3.amazonaws.com/Vagrantfile&lt;/a&gt;&lt;/li&gt;&lt;li&gt;From the command line prompt, run:&lt;code style="font-family:monospace, serif;font-size:13px;background-color:#f2f2f2;padding:5px 8px;margin:5px;"&gt;&lt;span&gt;$ vagrant box add base &lt;/span&gt;&lt;a class="jive-link-external-small" href="http://files.vagrantup.com/lucid32.box" rel="nofollow" target="_blank"&gt;http://files.vagrantup.com/lucid32.box&lt;/a&gt;&lt;/code&gt;&lt;/li&gt;&lt;li&gt;From the command line prompt and in the directory of your Vagrantfile, run&lt;code style="font-family:monospace, serif;font-size:13px;background-color:#f2f2f2;padding:5px 8px;margin:5px;"&gt;$ vagrant up&lt;/code&gt; &lt;strong&gt;Note&lt;/strong&gt;: this could take up to an hour, and you&amp;#39;ll get many&lt;code style="font-family:monospace, serif;font-size:13px;background-color:#f2f2f2;padding:5px 8px;margin:5px;"&gt;Gem.specification&lt;/code&gt; deprecation warnings that you can ignore.&lt;/li&gt;&lt;li&gt;Set up PuTTY to allow you to SSH into Vagrant (see directions on the Vagrant site in the &amp;quot;Using Microsoft Windows?&amp;quot; section here:&lt;a class="jive-link-external-small" href="http://vagrantup.com/docs/getting-started/ssh.html" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;http://vagrantup.com/docs/getting-started/ssh.html&lt;/a&gt;)&lt;/li&gt;&lt;li&gt;You&amp;#39;re now on a virtual box within your computer, except this one is running Linux. If you do &lt;code style="font-family:monospace, serif;font-size:13px;background-color:#f2f2f2;padding:5px 8px;margin:5px;"&gt;$ cd /vagrant&lt;/code&gt; you&amp;#39;ll be able to see the Vagrantfile you copied into a directory earlier. This is a special directory on your virtual box that links back to the directory you created from Windows. If you create a file in there from Windows, you&amp;#39;ll be able to see it in this directory and vice versa.&lt;/li&gt;&lt;/ol&gt;&lt;p style="margin:0;margin:1em 0;color:#555555;font-family:Lato, Helvetica, sans-serif;font-size:16px;text-align:-webkit-auto;"&gt;Done. You now have all of the essentials of a modern Rails environment set up on an Ubuntu VirtualBox on your Windows computer. Try creating a new app within your VirtualBox with &lt;code style="font-family:monospace, serif;font-size:13px;background-color:#f2f2f2;padding:5px 8px;margin:5px;"&gt;$ rails new &amp;lt;app name&amp;gt;&lt;/code&gt;.&lt;/p&gt;&lt;p style="margin:0;margin:1em 0;color:#555555;font-family:Lato, Helvetica, sans-serif;font-size:16px;text-align:-webkit-auto;"&gt;If you&amp;#39;d like to see what you can do with your new virtual machine instance, be sure to check out the official documentation at &lt;a class="jive-link-external-small" href="http://vagrantup.com/" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;http://vagrantup.com&lt;/a&gt; and the Railscast &lt;a class="jive-link-external-small" href="http://railscasts.com/episodes/292-virtual-machines-with-vagrant" rel="nofollow ugc noopener" style="color:#000000;border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#dddddd;" target="_blank"&gt;here&lt;/a&gt;&lt;/p&gt;&lt;p style="margin:0;"&gt;&lt;span style="font-family:helvetica;"&gt;&lt;strong&gt;via&lt;/strong&gt; &lt;a class="jive-link-external-small" href="http://blog.bloc.io/a-better-way-to-set-up-rails-on-windows" rel="nofollow ugc noopener" target="_blank"&gt;BLOC NATION&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;

&lt;div style="font-size: 90%;"&gt;Tags: coding, on, rails, up, ruby, programming, windows, for, set&lt;/div&gt;
</description></item></channel></rss>