<?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; Rails 2.0</title>
	<atom:link href="http://blog.activoricordi.com/tag/rails-20/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>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>Tutorials in Routing in Rails 2.0</title>
		<link>http://blog.activoricordi.com/2008/08/tutorials-in-routing-in-rails-20/</link>
		<comments>http://blog.activoricordi.com/2008/08/tutorials-in-routing-in-rails-20/#comments</comments>
		<pubDate>Sat, 30 Aug 2008 02:02:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Routes.rb]]></category>
		<category><![CDATA[RubyonRails]]></category>
		<category><![CDATA[Rails 2.0]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.activoricordi.com/?p=70</guid>
		<description><![CDATA[Hi All: I try to be fresh and publish new material, but sometimes when someone do something with excellence we only need to praise his work. Here a set of nice articles for explaining what it is routing in Rails from Daryn Holmes. !!Excellent Work!! Part 1 Beginners Tutorial: Routing in Rails 2.0 (with REST) [...]]]></description>
			<content:encoded><![CDATA[<p>Hi All:</p>
<p>I try to be fresh and publish new material, but sometimes when someone do something with excellence we only need to praise his work.</p>
<p>Here a set of nice articles for explaining what it is routing in Rails from <a class="wp-caption" title="Daryn Holmes Blog" href="http://darynholmes.wordpress.com" target="_blank">Daryn Holmes</a>. !!Excellent Work!!</p>
<p><a class="wp-caption" title="Beginners tutorial routing in Rails 2.0 with rest" href="http://darynholmes.wordpress.com/2008/03/15/beginners-tutorial-routing-in-rails-20-with-rest-part-1-of-n/" target="_blank">Part 1 </a><a title="Permanent Link: Beginners Tutorial: Routing in Rails 2.0 (with REST) - Part 1 of n" rel="bookmark" href="http://darynholmes.wordpress.com/2008/03/15/beginners-tutorial-routing-in-rails-20-with-rest-part-1-of-n/">Beginners Tutorial: Routing in Rails 2.0 (with REST) &#8211; Part 1 of n</a></p>
<p><a class="wp-caption" title="Beginners tutorial routing in Rails 2.0 with rest" href="http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/" target="_blank">Part 2 </a><a title="Permanent Link: Beginners Tutorial: Routing in Rails 2.0 (with REST) - Part 2 of n" rel="bookmark" href="http://darynholmes.wordpress.com/2008/03/25/beginners-tutorial-routing-in-rails-20-with-rest-part-2-of-n/">Beginners Tutorial: Routing in Rails 2.0 (with REST) &#8211; Part 2 of n</a></p>
<p><a class="wp-caption" title="Beginners tutorial routing in Rails 2.0 with rest" href="http://darynholmes.wordpress.com/2008/04/27/beginners-tutorial-routing-in-rails-20-with-rest-part-3-of-n/" target="_blank">Part 3 </a><a title="Permanent Link: Beginners Tutorial: Routing in Rails 2.0 (with REST) - Part 3 of n" rel="bookmark" href="http://darynholmes.wordpress.com/2008/04/27/beginners-tutorial-routing-in-rails-20-with-rest-part-3-of-n/">Beginners Tutorial: Routing in Rails 2.0 (with REST) &#8211; Part 3 of n</a></p>
<p><a class="wp-caption" title="Beginners tutorial routing in Rails 2.0 with rest" href="http://darynholmes.wordpress.com/2008/05/11/beginners-tutorial-routing-in-rails-20-with-rest-part-4-of-n/" target="_blank">Part 4</a> <a title="Permanent Link: Beginners Tutorial: Routing in Rails 2.0 (with REST) - Part 4 of n" rel="bookmark" href="http://darynholmes.wordpress.com/2008/05/11/beginners-tutorial-routing-in-rails-20-with-rest-part-4-of-n/">Beginners Tutorial: Routing in Rails 2.0 (with REST) &#8211; Part 4 of n</a></p>
<p><a class="wp-caption" title="Beginners tutorial routing in Rails 2.0 with rest" href="http://darynholmes.wordpress.com/2008/05/26/beginners-tutorial-routing-in-rails-20-with-rest-part-5-of-n/" target="_blank">Part 5</a> <a title="Permanent Link: Beginners Tutorial: Routing in Rails 2.0 (with REST) - Part 5 of n" rel="bookmark" href="http://darynholmes.wordpress.com/2008/05/26/beginners-tutorial-routing-in-rails-20-with-rest-part-5-of-n/">Beginners Tutorial: Routing in Rails 2.0 (with REST) &#8211; Part 5 of n</a></p>
<p><a class="wp-caption" title="Beginners tutorial routing in Rails 2.0 with rest" href="Beginners Tutorial: Routing in Rails 2.0 (with REST) - Part 6 of n" target="_blank">Part 6</a> <a title="Permanent Link: Beginners Tutorial: Routing in Rails 2.0 (with REST) - Part 6 of n" rel="bookmark" href="http://darynholmes.wordpress.com/2008/07/06/beginners-tutorial-routing-in-rails-20-with-rest-part-6-of-n/">Beginners Tutorial: Routing in Rails 2.0 (with REST) &#8211; Part 6 of n</a></p>
<p>Kind regards</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.activoricordi.com/2008/08/tutorials-in-routing-in-rails-20/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create an AddressBook 1</title>
		<link>http://blog.activoricordi.com/2008/08/create-an-addressbook-1/</link>
		<comments>http://blog.activoricordi.com/2008/08/create-an-addressbook-1/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 23:59:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Mashups]]></category>
		<category><![CDATA[RubyonRails]]></category>
		<category><![CDATA[address book]]></category>
		<category><![CDATA[Rails 2.0]]></category>
		<category><![CDATA[RoR]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby on Rails]]></category>

		<guid isPermaLink="false">http://blog.activoricordi.com/?p=6</guid>
		<description><![CDATA[Most of the articles and projects about Ruby on Rails do not cover the whole process of creating an open source slim project, the objective of these set of posts if cover the whole development process]]></description>
			<content:encoded><![CDATA[<p>Hi All:</p>
<p>One of the things I dislike most of Open Source Applications, it is that are very difficult to continue since the code and way it is built, also it does not cover components; instead of building new entire application I would like to see how to build small reusable components which could be integrated on new applications. Today, we are going to explain how to create a slik &#8220;address book&#8221;.</p>
<p><strong>1) Create the rails project:</strong></p>
<p>As I am a fan of mysql database, I do create projects specifically for this database with the sentence:</p>
<p><code>rails -d mysql addressbook</code></p>
<p><strong>2) Create main objects:</strong></p>
<p>The base of the addressbook is the contact object which we are going to scaffold:</p>
<p><code>script/generate scaffold contact firstname:string lastname:string lastname2:string phone_id:integer address_id:integer photo_id:integer page_url:string title:string company_id:integer email_id:integer background:text comments:text author:string</code></p>
<p>As you can see the Contact is compound by other objects such as phone, address and photo. These objects are formed by several characteristics:</p>
<ul>
<li>firstname</li>
<li>lastname</li>
<li>lastname2 &#8211; For those countries where a second last name is used</li>
<li>phone_id &#8211; Each contact can have multiple phone which forms an array of values</li>
<li>address_id- The address could be multiple and build on an object with an array of values</li>
<li>comments &#8211; It has an auto-complete feature</li>
</ul>
<p>3) Create authentication:</p>
<p>We are going to create the authentication, so only authorized users can access to the application</p>
<p>script/generate scaffold user userName:string firstName:string lastName:string alias:string email:string password_salt:string password_hash:string</p>
<p>4) Setup the database:</p>
<p>We open the database.yml file where we insert the password of the root user or if we have leave it blank as default we do not have to enter it. In order to look it, install a mysql administration tool. There are plenty on the Internet.</p>
<p>We execute the rake command to create the database</p>
<p><code>rake create:db:all</code></p>
<p>And we create the first migration</p>
<p><code>rake migrate:db</code></p>
<p>Now we have created the contact object on the database.</p>
<p>On next chapter, we will create the rest of the subornidates objects and we will add plugins.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.activoricordi.com/2008/08/create-an-addressbook-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MacOS X Ruby on Rails Development tips I</title>
		<link>http://blog.activoricordi.com/2008/08/macos-x-ruby-on-rails-development-tips-i/</link>
		<comments>http://blog.activoricordi.com/2008/08/macos-x-ruby-on-rails-development-tips-i/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 10:49:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[RubyonRails]]></category>
		<category><![CDATA[macos]]></category>
		<category><![CDATA[Rails 2.0]]></category>
		<category><![CDATA[rails tips]]></category>
		<category><![CDATA[scaffold]]></category>

		<guid isPermaLink="false">http://blog.activoricordi.com/?p=15</guid>
		<description><![CDATA[We open a set of posts dedicated to mentioned Rails development tips or tricks which are often found in several articles: 1) Open several instances of a webrick server from the command line on MacOs X Leopard : This article is based on a similar tip provided for Windows OS by Mr. Arjun Ghosh. It [...]]]></description>
			<content:encoded><![CDATA[<p>We open a set of posts dedicated to mentioned Rails development tips or tricks which are often found in several articles:</p>
<p>1) <strong>Open several instances of a webrick server from the command line on MacOs X Leopard :</strong><br />
This article is based on a similar tip provided for <a href="http://arjunghosh.wordpress.com/2007/09/06/starting-multiple-instances-of-webrick-server-from-the-command-line/">Windows OS</a> by Mr. Arjun Ghosh. It is basically the same.<br />
a) I open my Terminal app<br />
b) I access to my rails application directory (previously created) which is created on my Library directory:<br />
<code>cd library/rails_apps</code><br />
c) Then, we access to each one of the applications we want to open in webrick: We open the first server with the typical sentence:<br />
<code>/script/server</code><br />
and then if we want to open another application, we access to the application:<br />
<code>cd<br />
/script/server -p3001</code></p>
<p>2) Scaffold Rails 2.0</p>
<p>Clearly, I do not understand this scaffold change on the Rails 2.0 version, it has changed one of the features I enjoyed most from Rails which was a great dynamic scaffolding, and also the possibility to scaffold a model and a specific controller. I understand that it is being done to obtain a more Restful approach on the models and on the controllers, but sometimes is a pain.</p>
<p>Not long time before the appearing of Rails 2.0, I had the brilliant idea of buying last version of version of the Rails book which obviously have all example written in Rails 1.x version. For that reason depot example is no longer valid.</p>
<p>As Mr. Arjun Ghosh mentioned on his comment before there is a new edition of &#8220;Agile Web Development with Rails&#8221; coming out soon. (<a class="wp-caption-dd" title="AWDR Third Edition" href="http://www.pragprog.com/titles/rails3/agile-web-development-with-rails-third-edition" target="_blank">See reference</a>)</p>
<p>Enough for now<br />
Regards</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.activoricordi.com/2008/08/macos-x-ruby-on-rails-development-tips-i/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

