<?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>Ruby on Rails Programming Tips</title>
	<atom:link href="http://rubyonrailsprogrammingtips.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://rubyonrailsprogrammingtips.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 Aug 2010 03:25:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>September-Ruby on rails programming roundup</title>
		<link>http://rubyonrailsprogrammingtips.com/information/september-ruby-on-rails-programming-roundup/</link>
		<comments>http://rubyonrailsprogrammingtips.com/information/september-ruby-on-rails-programming-roundup/#comments</comments>
		<pubDate>Tue, 10 Aug 2010 03:25:38 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/september-ruby-on-rails-programming-roundup/</guid>
		<description><![CDATA[
The news just kept showing every day, what a great Ruby on Rails for September. Since it was launched it was being supported and its just getting bigger and bigger. There are many list of programmers who featured Ruby on Rail (ROR), there are new blogs studies and resource tutorials or software. 
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.connectblogs.com/tag/programming/"><img src="/wp-content/uploads/scraped/24.jpg"/></a>
<p>The news just kept showing every day, what a great Ruby on Rails for September. Since it was launched it was being supported and its just getting bigger and bigger. There are many list of programmers who featured Ruby on Rail (ROR), there are new blogs studies and resource tutorials or software. </p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/information/september-ruby-on-rails-programming-roundup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Optimize Later</title>
		<link>http://rubyonrailsprogrammingtips.com/information/optimize-later/</link>
		<comments>http://rubyonrailsprogrammingtips.com/information/optimize-later/#comments</comments>
		<pubDate>Sat, 10 Jul 2010 00:00:00 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/optimize-later/</guid>
		<description><![CDATA[
One of the major concerned many people switching to Rails is Performance. Rails is generally slower than other web frameworks while a Ruby Rail designed to make web development faster, simpler and more efficient. The majority of us performance does not need to be considered until near the completion of the application because if you [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.wayofthepixel.net/pixelation/index.php%3Ftopic%3D6890.0"><img src="/wp-content/uploads/scraped/22.jpg"/></a>
<p>One of the major concerned many people switching to Rails is Performance. Rails is generally slower than other web frameworks while a Ruby Rail designed to make web development faster, simpler and more efficient. The majority of us performance does not need to be considered until near the completion of the application because if you are a large corporation that needs to handle thousands of requests per second, then you may have something to be concerned about.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/information/optimize-later/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RoR and Text Editors Part-2</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/ror-and-text-editors-part-2/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/ror-and-text-editors-part-2/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 11:33:19 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Text Editors]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/ror-and-text-editors-part-2/</guid>
		<description><![CDATA[
More on text editors that are used with RoR and we not discuss VIM or Vi Improved. Vim like Emacs is quite efficient and easy to use with RoR provided it is set-up properly. The nice about Vim is that it has the nifty way of highlighting syntax in ruby making it easy to trace [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://biodegradablegeek.com/2007/12/using-vim-as-a-complete-ruby-on-rails-ide/"><img src="/wp-content/uploads/scraped/17.jpg"/></a>
<p>More on text editors that are used with RoR and we not discuss VIM or Vi Improved. Vim like Emacs is quite efficient and easy to use with RoR provided it is set-up properly. The nice about Vim is that it has the nifty way of highlighting syntax in ruby making it easy to trace and debug. It features advanced features such as having a selective command and insert mode with the first being the default mode upon startup. It is not a word processor so fonts and other word processor features are not to be expected.</p>
<p>TextPad<br />
One of the quickest and easiest to use as a text editor for making RoR programs with straightforward interface and features mostly adept to windows users. Though considered a text editor it is capable of syntax highlighting, search , spell check and macro recording which makes it a choice of many developers.</p>
<p>ArachnoRuby<br />
Is deployable on both windows based and Unix based systems and is considered to be the native editor of RoR. It was not too user friendly so it quickly lost favor of many developers who turned to the other specified editors for programming code.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/ror-and-text-editors-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started and how to open Programs : Part 2</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/getting-started-and-how-to-open-programs-%e2%80%93-part-2/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/getting-started-and-how-to-open-programs-%e2%80%93-part-2/#comments</comments>
		<pubDate>Mon, 10 May 2010 10:14:01 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RoR Basics]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/getting-started-and-how-to-open-programs-%e2%80%93-part-2/</guid>
		<description><![CDATA[
Save the text file with the following filename &#8220;first1.rb&#8221; and we now go into the syntax checking function and the facility provided to show the syntax check verbosely. The following code shows how code is checked for syntax correctness and returns the result of the said checking by typing the following code :
$ ruby :cw [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.sandboxie.com/index.php%3FGettingStarted"><img src="/wp-content/uploads/scraped/15.jpg"/></a>
<p>Save the text file with the following filename &#8220;first1.rb&#8221; and we now go into the syntax checking function and the facility provided to show the syntax check verbosely. The following code shows how code is checked for syntax correctness and returns the result of the said checking by typing the following code :</p>
<p>$ ruby :cw first1.rb</p>
<p>The &#8220;-c&#8221; flag initiates Ruby&#8217;s syntax checker while the &#8220;w&#8221; flag shows the result of the syntax checker. If there is no issue with the code being checked you get a &#8220;Syntax OK&#8221; result which means you can execute the code for there are no syntax issues. Type $ruby first1.rb on the command line and you get the result &#8221; The concatenated line is : This is my first Ruby Program &#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/getting-started-and-how-to-open-programs-%e2%80%93-part-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting Started and how to open Programs : Part 1</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/getting-started-and-how-to-open-programs-%e2%80%93-part-1/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/getting-started-and-how-to-open-programs-%e2%80%93-part-1/#comments</comments>
		<pubDate>Sat, 10 Apr 2010 10:12:51 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[RoR Basics]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/getting-started-and-how-to-open-programs-%e2%80%93-part-1/</guid>
		<description><![CDATA[
RubyonRails is similar to most programming languages where in one can use the command line in windows or a terminal in Unix based systems. All programs should be written and saves in plain text format for the compiler and interpreter to process it easily. The first program would give you a feel for the overall [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.unicon.net/node/1036"><img src="/wp-content/uploads/scraped/14.jpg"/></a>
<p>RubyonRails is similar to most programming languages where in one can use the command line in windows or a terminal in Unix based systems. All programs should be written and saves in plain text format for the compiler and interpreter to process it easily. The first program would give you a feel for the overall syntax of how the program is created and what the compiler does. Type the following code into the text file to see how it is done:</p>
<p>#this is a sample program<br />
a = &#8220;This is&#8221;<br />
b = &#8220;my first Ruby Program&#8221;<br />
print &#8220;The concatenated line is :&#8221;<br />
print a << b</p>
<p>The next post would show the continuation of the exercise.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/getting-started-and-how-to-open-programs-%e2%80%93-part-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Next step : Creating the database for the filename application</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/next-step-%e2%80%93-creating-the-database-for-the-filename-application/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/next-step-%e2%80%93-creating-the-database-for-the-filename-application/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 00:00:00 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[Set-Up]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Odbc]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/next-step-%e2%80%93-creating-the-database-for-the-filename-application/</guid>
		<description><![CDATA[
The next phase or step would be to create a database for the application to use. Make sure the MySql engine is running and in the command window type &#8220;mysql -u root -p&#8221; and press enter and another enter for the password when prompted for there has not been any defined password yet. You are [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.imagementor.net/resources/viewer.asp%3FResourceID%3D125"><img src="/wp-content/uploads/scraped/12.jpg"/></a>
<p>The next phase or step would be to create a database for the application to use. Make sure the MySql engine is running and in the command window type <em>&#8220;mysql -u root -p&#8221;</em> and press enter and another enter for the password when prompted for there has not been any defined password yet. You are now logged into the engine as the root user and proceed to create the database by entering the following command <em>&#8220;create database filename_development&#8221;</em>. Also type in <em>&#8220;grant all on filename_development.* to &#8216;ODBC&#8217;@'localhost&#8217;</em> this tells windows to grant access to a user named ODBC so you avoid an error when you try to access the said database from the command prompt. We next tackle the creation of tables that would allow the database to store the information we send it.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/next-step-%e2%80%93-creating-the-database-for-the-filename-application/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database manipulation</title>
		<link>http://rubyonrailsprogrammingtips.com/advanced/database-manipulation/</link>
		<comments>http://rubyonrailsprogrammingtips.com/advanced/database-manipulation/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 05:10:05 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Advanced]]></category>
		<category><![CDATA[Basics]]></category>
		<category><![CDATA[Medium]]></category>
		<category><![CDATA[Set-Up]]></category>
		<category><![CDATA[Databases]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/database-manipulation/</guid>
		<description><![CDATA[
The database has been initialized, so now we get down to business of defining the fields in that database and include a field that we would call a foreign key which allows the establishment of the one to many relationship between the tables. This part of the process requires quite a bit of background of [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mikeparr.info/csharp1st/csdb/cs25dbchapter.htm"><img src="/wp-content/uploads/scraped/13.jpg"/></a>
<p>The database has been initialized, so now we get down to business of defining the fields in that database and include a field that we would call a foreign key which allows the establishment of the one to many relationship between the tables. This part of the process requires quite a bit of background of database creation, manipulation and handling. It also requires knowledge regarding the workings of data types. So assuming you do not have much knowledge in such areas do some more reading to give you a better understanding of what how and why they are there. The ROR developers might say that it is very easy to do and use ROR but without the background on logic formulation, data types and manipulation as well as database handling the rest of the posts which would tackle ever hardening topics and operations would be very difficult to make sense of.</p>
<p>Don&#8217;t get me wrong, we just want to make life easier for you and not have you not understanding anything at all.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/advanced/database-manipulation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Next Step : Creating Empty Applications</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/next-step-%e2%80%93-creating-empty-applications/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/next-step-%e2%80%93-creating-empty-applications/#comments</comments>
		<pubDate>Sun, 10 Jan 2010 05:06:16 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Set-Up]]></category>
		<category><![CDATA[App's Creation in RoR]]></category>
		<category><![CDATA[ROR application directory]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/next-step-%e2%80%93-creating-empty-applications/</guid>
		<description><![CDATA[
Now that all has been set-up and is working, you should be able to create empty apps which is merely defining the application using rails which automatically creates all the necessary directories that are needed. Open a command prompt window and go to the directory where it was installed and proceed into the rails_apps directory. [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.exclamationsoft.com/MailListBot/help/InstallWin2003.asp"><img src="/wp-content/uploads/scraped/10.jpg"/></a>
<p>Now that all has been set-up and is working, you should be able to create empty apps which is merely defining the application using rails which automatically creates all the necessary directories that are needed. Open a command prompt window and go to the directory where it was installed and proceed into the rails_apps directory. Type in <em>&#8216;rails filename&#8217;</em> and rails creates all the necessary directories you would be needing for the development process. Don�t get freaked out when you see the multitude of directories for they will be filled out by &#8220;RAILS&#8221; and not by you manually. The next post will discuss some of the nuances of those dizzying directories to take some of the fog over them out.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/next-step-%e2%80%93-creating-empty-applications/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Simplifying the previous program with modifiers</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/simplifying-the-previous-program-with-modifiers/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/simplifying-the-previous-program-with-modifiers/#comments</comments>
		<pubDate>Thu, 10 Dec 2009 01:35:27 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[if statements]]></category>
		<category><![CDATA[modifiers]]></category>
		<category><![CDATA[siplifying code]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/simplifying-the-previous-program-with-modifiers/</guid>
		<description><![CDATA[
As said in the past post, there is an easier way of doing the stuff we did in the last program which would be very helpful when coding thousands of line of code when you do end up building your own programs is ruby.
class BookList
     def [](key)
	if key.kind_of?(integer)
	    [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.ismanet.org/resources/mm_coalition/11-9-07/index.htm"><img src="/wp-content/uploads/scraped/19.jpg"/></a>
<p>As said in the past post, there is an easier way of doing the stuff we did in the last program which would be very helpful when coding thousands of line of code when you do end up building your own programs is ruby.</p>
<p>class BookList<br />
     def [](key)<br />
	if key.kind_of?(integer)<br />
	     result =  @Books[key]<br />
	else<br />
	     result = @Books.find { |aBooks| key == sBooks.name}<br />
     	end<br />
	return result<br />
     end<br />
end</p>
<p>Simplifying the code further by using the ‘if’ statement as a modifier it becomes a shorter easier to attain the same results as with the first program:</p>
<p>class Booklist<br />
     def [](key)<br />
	return @Books[key] if key.kind_of?(Integer)<br />
	return @Books.find { |aBooks| aBooks.name == key }<br />
     end<br />
end</p>
<p>The use of the &#8216;find&#8217; command in Ruby is simply a call to a function that is executed and it can be compared to a block call in many other languages such as Perl, C++ or Java.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/simplifying-the-previous-program-with-modifiers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using the ‘yield’ statement</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/using-the-yield-statement/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/using-the-yield-statement/#comments</comments>
		<pubDate>Sat, 21 Nov 2009 01:36:42 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[Sample Code]]></category>
		<category><![CDATA[simplifying code]]></category>
		<category><![CDATA[yield]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/using-the-yield-statement/</guid>
		<description><![CDATA[
It might be almost similar but relatively different in a big way for blocks may appear only in the source adjacent to a method call which means it should be written on the same line as the method&#8217;s last parameter and it is not implemented once it is encountered but, Ruby rather remembers the context [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.leg.bc.ca/hansard/32nd4th/32p_04s_820615p.htm"><img src="/wp-content/uploads/scraped/20.jpg"/></a>
<p>It might be almost similar but relatively different in a big way for blocks may appear only in the source adjacent to a method call which means it should be written on the same line as the method&#8217;s last parameter and it is not implemented once it is encountered but, Ruby rather remembers the context by which the block of code appears then enters the method. Within the method itself, the block of code may be called as if it were a block in itself by using the &#8216;yield&#8217; statement. After the block of code has been executed, control returns immediately right after the call to the yield statement. Sample use of &#8216;yield&#8217;:</p>
<p>def threeTimes<br />
     yield<br />
     yield<br />
     yield<br />
end<br />
threeTimes {puts &#8220;Hi There&#8221;}</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/using-the-yield-statement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
