<?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>Wed, 10 Mar 2010 00:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<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>
		<item>
		<title>About Ruby on Rails</title>
		<link>http://rubyonrailsprogrammingtips.com/information/about-ruby-on-rails/</link>
		<comments>http://rubyonrailsprogrammingtips.com/information/about-ruby-on-rails/#comments</comments>
		<pubDate>Tue, 20 Oct 2009 09:27:41 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/about-ruby-on-rails/</guid>
		<description><![CDATA[
An open source web application framework written in Ruby is commonly known as RoR (Ruby on Rails). It was designed to make web development faster, simpler and more efficient and it also used to develop real-world application with less code, compared to other application frameworks. Ruby on Rails divides itself into various packages, namely Active [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.eclips3media.com/workshop/2007/06/28/introducing-ruby-on-rails/"><img src="/wp-content/uploads/scraped/26.jpg"/></a>
<p>An open source web application framework written in Ruby is commonly known as RoR (Ruby on Rails). It was designed to make web development faster, simpler and more efficient and it also used to develop real-world application with less code, compared to other application frameworks. Ruby on Rails divides itself into various packages, namely Active Record, Active Resource, Action Pack, Active Support and Action Mailer.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/information/about-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby on Rails Chases Simplicity in Programming</title>
		<link>http://rubyonrailsprogrammingtips.com/information/ruby-on-rails-chases-simplicity-in-programming/</link>
		<comments>http://rubyonrailsprogrammingtips.com/information/ruby-on-rails-chases-simplicity-in-programming/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 12:28:28 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/uncategorized/ruby-on-rails-chases-simplicity-in-programming/</guid>
		<description><![CDATA[
Ruby on Rails has focused on creating templates and designs that tackle the unglamorous problems. It is not also to create a sophisticated development framework that the engineers at Google or Amazon.com will flock to; it is like making a database modification that the great majority of Web developers face every day.
]]></description>
			<content:encoded><![CDATA[<p><a href="http://anarchaia.org/archive/2005/10.html"><img src="/wp-content/uploads/scraped/27.jpg"/></a>
<p>Ruby on Rails has focused on creating templates and designs that tackle the unglamorous problems. It is not also to create a sophisticated development framework that the engineers at Google or Amazon.com will flock to; it is like making a database modification that the great majority of Web developers face every day.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/information/ruby-on-rails-chases-simplicity-in-programming/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install Ruby on a Shared Web Host</title>
		<link>http://rubyonrailsprogrammingtips.com/basics/how-to-install-ruby-on-a-shared-web-host/</link>
		<comments>http://rubyonrailsprogrammingtips.com/basics/how-to-install-ruby-on-a-shared-web-host/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 09:34:46 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[Basics]]></category>
		<category><![CDATA[web host]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/basics/how-to-install-ruby-on-a-shared-web-host/</guid>
		<description><![CDATA[by Chubs

Create a directory for all of the software you are going to download and installed. In this example, the created directory is “temp” at the root of the files system, but you can use any name and location you like.
cd /
mkdir temp
chmod 775 temp
Now, download, configure and install Ruby. You can download the latest [...]]]></description>
			<content:encoded><![CDATA[<p>by Chubs</p>
<p><img src='http://rubyonrailsprogrammingtips.com/wp-content/uploads/2008/06/webhosting.jpg' alt='webhosting.jpg' /></p>
<p>Create a directory for all of the software you are going to download and installed. In this example, the created directory is “temp” at the root of the files system, but you can use any name and location you like.</p>
<p><em>cd /<br />
mkdir temp<br />
chmod 775 temp</em></p>
<p>Now, download, configure and install Ruby. You can download the latest stable source tarball for Ruby <a href="http://www2.ruby-lang.org/en/20020102.html">here</a>. Wget is used in this example:</p>
<p><em>cd temp<br />
wget ftp://ftp.ruby-lang.org/pub/ruby/ruby-1.8.2.tar.gz<br />
tar -zxvf ruby-1.8.2.tar.gz cd ruby-1.8.2</em></p>
<p>Specify an install directory since there are times when you won’t have permissions to install things in normal directories. Here, we can see the “configure” script for Ruby, creating a directory inside &#8220;/usr/local&#8221; for installation:</p>
<p><em>./configure &#8211;prefix=/usr/local/ruby &#8211;exec-prefix=/usr/local/ruby </em></p>
<p>Now, you have a Makefile that you can compile:</p>
<p><em>make<br />
make install</em></p>
<p>Your Ruby is now installed. You should try making a symbolic link to Ruby somewhere in your local path:</p>
<p><em>ln -s /usr/local/ruby/bin/ruby /usr/local/bin/ruby </em></p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/basics/how-to-install-ruby-on-a-shared-web-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install RubyGems and Rails on a Shared Web Host</title>
		<link>http://rubyonrailsprogrammingtips.com/web-host/how-to-install-rubygems-and-rails-on-a-shared-web-host/</link>
		<comments>http://rubyonrailsprogrammingtips.com/web-host/how-to-install-rubygems-and-rails-on-a-shared-web-host/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 09:38:03 +0000</pubDate>
		<dc:creator>editor</dc:creator>
				<category><![CDATA[web host]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/web-host/how-to-install-rubygems-and-rails-on-a-shared-web-host/</guid>
		<description><![CDATA[by Chubs

RubyGems or Gem allows you to install extra packages and libraries for Ruby. You need Gem before installing Rails. You can get the latest version of RubyGems here. 
cd /temp
wget http://rubyforge.org/frs/download.php/3700/rubygems-0.8.10.tgz
tar -zxvf rubygems-0.8.10.tgz
cd rubygems-0.8.10
To install RubyGems,  you need to use Ruby to call the setup script: 
ruby setup.rb 
Here, you should see &#8220;Successfully [...]]]></description>
			<content:encoded><![CDATA[<p>by Chubs</p>
<p><img src='http://rubyonrailsprogrammingtips.com/wp-content/uploads/2008/06/webweb.jpg' alt='webweb.jpg' /></p>
<p>RubyGems or Gem allows you to install extra packages and libraries for Ruby. You need Gem before installing Rails. You can get the latest version of RubyGems <a href="http://rubyforge.org/frs/?group_id=126">here</a>. </p>
<p><em>cd /temp<br />
wget http://rubyforge.org/frs/download.php/3700/rubygems-0.8.10.tgz<br />
tar -zxvf rubygems-0.8.10.tgz<br />
cd rubygems-0.8.10</em></p>
<p>To install RubyGems,  you need to use Ruby to call the setup script: </p>
<p><em>ruby setup.rb </em></p>
<p>Here, you should see &#8220;Successfully built RubyGem&#8221; if it’s finished. Next, open the file &#8220;/usr/local/ruby/bin/gem&#8221; in your favorite text editor (such as <em>vi</em>) and edit the first line so you’ll know where to find your custom Ruby installation. Example:</p>
<p><em>#!/usr/local/bin/ruby </em></p>
<p>Now, add a few more symlinks: </p>
<p><em>cd /usr/local/bin<br />
ln -s /usr/local/ruby/bin/erb erb<br />
ln -s /usr/local/ruby/bin/eruby eruby<br />
ln -s /usr/local/ruby/bin/gem gem<br />
ln -s /usr/local/ruby/bin/gem_server gem_server<br />
ln -s /usr/local/ruby/bin/testrb testrb<br />
ln -s /usr/local/ruby/bin/update_rubygems update_rubygems</em></p>
<p>RubyGems is now installed. To install Rails, use:</p>
<p><em>gem install rails &#8211;remote</em></p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/web-host/how-to-install-rubygems-and-rails-on-a-shared-web-host/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ruby &#8211; Still on the Sidelines?</title>
		<link>http://rubyonrailsprogrammingtips.com/information/ruby-still-on-the-sidelines/</link>
		<comments>http://rubyonrailsprogrammingtips.com/information/ruby-still-on-the-sidelines/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 04:10:34 +0000</pubDate>
		<dc:creator>Earnest</dc:creator>
				<category><![CDATA[Information]]></category>

		<guid isPermaLink="false">http://rubyonrailsprogrammingtips.com/?p=92</guid>
		<description><![CDATA[Ruby has long been fighting for recognition in the world of open-source development and in the past few years, it surely has managed to go mainstream with some major development projects. One surprising fact when it comes to overall popularity, recent development surveys show that use of the scripting language has jumped by 40% which [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://tbn3.google.com/images?q=tbn:9e0L6_hPI04kBM:http://www.eclips3media.com/workshop/wp-content/uploads/2007/12/ruby-on-rails.jpg" alt="" />Ruby has long been fighting for recognition in the world of <a href="http://opensourcedailyguide.com/">open-source development</a> and in the past few years, it surely has managed to go mainstream with some major development projects. One surprising fact when it comes to overall popularity, recent development surveys show that use of the scripting language has jumped by 40% which may be sign that people are embracing more options in their drive to lower all costs with regard to the newer versions of the many flavors being used all over the globe. The updated Ruby on Rails 2.3 is a bit better and easier to use compared to previous to older versions and with the recession putting the brakes on many projects being planned, alternate methods of development and deployment have to be found to allow enterprise to continue with their plans with less costs.<span id="more-92"></span><br />
In the US and most developed countries, developers have been trying to find of ways to continue with innovative programs without the need for expensive infrastructure that  they have lost. High costs and more are taxing heavy in IT branches but open-sourced developments have been the &#8220;IN&#8221; thing that web developers and businesses are taking a good hard look at.</p>
]]></content:encoded>
			<wfw:commentRss>http://rubyonrailsprogrammingtips.com/information/ruby-still-on-the-sidelines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
