<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>ActivoRicordi Captain&#039;s log &#187; Ruby</title>
	<atom:link href="http://blog.activoricordi.com/category/ruby/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.activoricordi.com</link>
	<description>Delivering Innovation through Technology</description>
	<lastBuildDate>Sat, 21 Jan 2012 00:56:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Learn to build a Rails app using Heroku and Git</title>
		<link>http://blog.activoricordi.com/2009/11/learn-to-build-a-rails-app-using-heroku/</link>
		<comments>http://blog.activoricordi.com/2009/11/learn-to-build-a-rails-app-using-heroku/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 13:34:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[RubyonRails]]></category>

		<guid isPermaLink="false">http://blog.activoricordi.com/?p=7</guid>
		<description><![CDATA[Hi All: I have recently discover Heroku service for building applications. It is extremely useful and extremely easy to use. It is also based in Git a SCM system which is also revolutionazing the version control systems. To install Git, we could use this guide located on the progit or also you can see this [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All:</p>
<p>I have recently discover Heroku service for building applications. It is extremely useful and extremely easy to use. It is also based in Git a SCM system which is also revolutionazing the version control systems.</p>
<p>To install Git, we could use this guide located on the progit or also you can see this <a href="http://www.nice-panorama.com/Programmation/cappuccino/Tutorial-git.html">page</a> which explains how to use textmate with git</p>
<p>We set git configuration:</p>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;">&lt;</span>span<span style="color:#006600; font-weight:bold;">&gt;</span>$<span style="color:#006600; font-weight:bold;">&lt;/</span>span<span style="color:#006600; font-weight:bold;">&gt;</span> git config <span style="color:#006600; font-weight:bold;">--</span>global user.<span style="color:#9900CC;">name</span> <span style="color:#006600; font-weight:bold;">&lt;</span>span<span style="color:#006600; font-weight:bold;">&gt;</span><span style="color:#996600;">&quot;Your Name&quot;</span><span style="color:#006600; font-weight:bold;">&lt;/</span>span<span style="color:#006600; font-weight:bold;">&gt;</span>
<span style="color:#006600; font-weight:bold;">&lt;</span>span<span style="color:#006600; font-weight:bold;">&gt;</span>$<span style="color:#006600; font-weight:bold;">&lt;/</span>span<span style="color:#006600; font-weight:bold;">&gt;</span> git config <span style="color:#006600; font-weight:bold;">--</span>global user.<span style="color:#9900CC;">email</span> youremail@example.<span style="color:#9900CC;">com</span></pre></div></div>

<p>There is a great Quickstart for using Heroku which I used as a base for this post: http://docs.heroku.com/quickstart</p>
<ul>
<li>Sign in in Heroku</li>
<li>Install Heroku gem:</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">$ sudo gem install heroku</pre></div></div>

<ul>
<li>Create the local application in your mac: rails myapp</li>
<li>Access to the rails app: cd myapp</li>
<li>Install git</li>
<li>Execute git:  <em>$ git init</em></li>
<li>Do git add:  <em>$ git add .</em></li>
<li>We access to the following command:</li>
</ul>
<ul>
<li>
<ul>
<li>Do git first commit: <code><em>$ git commit -m "new app"</em><br />
</code></li>
<li>We open the application, and we start the local server <em>ruby script/server </em>and access to localserver using <em>http://127.0.0.1:3000</em></li>
<li>As usual, we generate a index or home controller. I generally call them <strong><em>dashboard</em></strong> as it is sexy: <em>$ ruby script/generate controller dashboard index</em></li>
<li>We delete the entry page: <em><span>$ rm public/index.html</span></em></li>
<li>We modify the <span style="font-weight: bold;">config/routes.rb </span>to enter the following route map:</li>
</ul>
<ul></ul>
<ul>
<li>We create the heroku application directly on the heroku site from our computer merely using the Heroku&#8217;s gem</li>
</ul>
<ul>
<li>Now the web site will be visible on the following address: http://severe-stone-45.heroku.com. Sustitute the name by the name provided by Heroku and you got it. As the heroku repository is blank when we create the application we need to deploy the code to a specific branch, we deploy the code throuh this instruction</li>
</ul>
</li>

<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">$ rake db:create
db<span style="color:#006600; font-weight:bold;">/</span>development.<span style="color:#9900CC;">sqlite3</span> already exists</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">map.<span style="color:#9900CC;">connect</span> <span style="color:#996600;">':controller/:action/:id'</span>
map.<span style="color:#9900CC;">connect</span> <span style="color:#996600;">':controller/:action/:id.:format'</span>
<span style="color:#008000; font-style:italic;"># Enter the route to access to enter the dashboard</span>
 map.<span style="color:#9900CC;">root</span> <span style="color:#ff3333; font-weight:bold;">:controller</span> =<span style="color:#006600; font-weight:bold;">&amp;</span>gt; <span style="color:#996600;">&quot;dashboard&quot;</span></pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">rake db:migrate</pre></div></div>


<div class="wp_syntax"><div class="code"><pre class="ruby" style="font-family:monospace;">heroku create
Created http:<span style="color:#006600; font-weight:bold;">//</span>severe<span style="color:#006600; font-weight:bold;">-</span>stone<span style="color:#006600; font-weight:bold;">-</span>45.<span style="color:#9900CC;">heroku</span>.<span style="color:#9900CC;">com</span><span style="color:#006600; font-weight:bold;">/</span> <span style="color:#006600; font-weight:bold;">|</span> git@heroku.<span style="color:#9900CC;">com</span>:severe<span style="color:#006600; font-weight:bold;">-</span>stone<span style="color:#006600; font-weight:bold;">-</span>45.<span style="color:#9900CC;">git</span></pre></div></div>

<p>$ git push heroku master</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.activoricordi.com/2009/11/learn-to-build-a-rails-app-using-heroku/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>I have changed to JQuery in Rails</title>
		<link>http://blog.activoricordi.com/2009/11/i-have-changed-to-jquery-in-rails/</link>
		<comments>http://blog.activoricordi.com/2009/11/i-have-changed-to-jquery-in-rails/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 09:23:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[ajax]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[RubyonRails]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Rails 2.0]]></category>

		<guid isPermaLink="false">http://blog.activoricordi.com/2009/11/i-have-changed-to-jquery-in-rails/</guid>
		<description><![CDATA[jQuery is today the best js library, prototype is a challenger.The reasons why I think this are beautifully illustrated on the following post. To use jQuery in rails install the following plugin: ruby script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails Here is a list of existing functions which are available once we replace prototype+scriptacuolous for the jquery. Hopefully, this [...]]]></description>
			<content:encoded><![CDATA[<p>jQuery is today the best js library, prototype is a challenger.The reasons why I think this are beautifully illustrated on the following <a href="http://jimneath.org/2008/06/18/using-jquery-with-ruby-on-rails/">post</a>. To use jQuery in rails install the following plugin:</p>
<p>ruby script/plugin install http://ennerchi.googlecode.com/svn/trunk/plugins/jrails</p>
<p>Here is a <a href="http://justtalkaboutweb.com/2008/01/14/replace-prototype-with-jquery-on-rails/">list</a> of existing functions which are available once we replace prototype+scriptacuolous for the jquery. Hopefully, this support will improve once we approach to Rails 3.</p>
<p>If you want to use both libraries, you will keep prototype js files, if you plan to use only jquery you could removed them. I particularly think that seems you have decided to use jquery there is few reasons to keep them.</p>
<p>Also, there are two ways to use jquery, I just found this interesting article which speak about a different way to use jquery, not using jrails but instead in a more unobstrusive way. Interesting point of view.</p>
<p>http://www.notgeeklycorrect.com/english/2009/05/18/beginners-guide-to-jquery-ruby-on-rails/</p>
<p>Kind regards and good weekend</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.activoricordi.com/2009/11/i-have-changed-to-jquery-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Windows Articles</title>
		<link>http://blog.activoricordi.com/2008/10/ruby-on-windows-articles/</link>
		<comments>http://blog.activoricordi.com/2008/10/ruby-on-windows-articles/#comments</comments>
		<pubDate>Sun, 12 Oct 2008 08:45:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[wxruby ruby]]></category>

		<guid isPermaLink="false">http://blog.activoricordi.com/?p=106</guid>
		<description><![CDATA[Hi All:

Not very recently ago, I found this great site about how to automate our main and basic tasks on Windows using Ruby called Ruby on Windows

. Being a lifetime ruby beginner, I found that maybe I could use this for my windows daily task and meanwhile learn a little bit more of Ruby.

Specially I like the articles about wxruby as sometimes I feel in the need or creating my own GUI for some of the tasks I and doing. Since I have no interest in program with Visual Basic .Net, as I feel a huge industrial development environment is not suit for my specific need, I feel wxruby is suitable tool for me.

Kind regards]]></description>
			<content:encoded><![CDATA[<p>Hi All:</p>
<p>Not very recently ago, I found this great site about how to automate our main and basic tasks on Windows using Ruby called <a class="wp-caption" title="Ruby on Windows OS" href="http://rubyonwindows.blogspot.com/" target="_blank">Ruby on Windows</a></p>
<p>. Being a lifetime ruby beginner, I found that maybe I could use this for my windows daily task and meanwhile learn a little bit more of Ruby.</p>
<p>Apart from the Winsows Office articles (main objective of the research), I specially like the articles about wxruby as sometimes I feel in the need or creating my own GUI for some of the tasks I and doing. Since I have no interest in program with Visual Basic .Net, as I feel a huge industrial development environment is not suit for my specific need, I feel wxruby is suitable tool for me.</p>
<p>Kind regards</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.activoricordi.com/2008/10/ruby-on-windows-articles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

