<?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>Ahad Bokhari &#187; &#187; rails</title>
	<atom:link href="http://blogspot.fluidnewmedia.com/tag/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blogspot.fluidnewmedia.com</link>
	<description>Addy&#039;s Personal Blog On Web &#38; Technology</description>
	<lastBuildDate>Mon, 28 Jun 2010 17:55:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=abc</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>37 Signals Book:  Getting Real</title>
		<link>http://blogspot.fluidnewmedia.com/2009/01/37-signals-book-getting-real/</link>
		<comments>http://blogspot.fluidnewmedia.com/2009/01/37-signals-book-getting-real/#comments</comments>
		<pubDate>Fri, 09 Jan 2009 11:48:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=1019</guid>
		<description><![CDATA[
My hunt for knowledge usually leads me to interesting places (in Rails as well as generally).  Today I found a priceless little book by 37 Signals titled &#8220;Getting Real&#8221;.  The book is available for purchase here
I&#8217;ve skimmed through the free online book and it looks extremely insightful for new designers, developers etc etc [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="https://gettingreal.37signals.com/"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/01/getting_real.jpg" alt="Getting Real:  Book by 37 Signals" title="Getting Real:  Book by 37 Signals" width="550" height="366" class="alignnone size-full wp-image-1020" /></a></p>
<p>My hunt for knowledge usually leads me to interesting places (in Rails as well as generally).  Today I found a priceless little book by 37 Signals titled &#8220;Getting Real&#8221;.  The book is available for purchase <a href="http://gettingreal.37signals.com/index.php">here</a></p>
<p>I&#8217;ve skimmed through the <a href="http://gettingreal.37signals.com/toc.php">free online book</a> and it looks extremely insightful for new designers, developers etc etc coming to the Rails framework.  </p>
<p>You might just want to check it out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2009/01/37-signals-book-getting-real/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Help support Rails:  Rails Activists</title>
		<link>http://blogspot.fluidnewmedia.com/2009/01/help-support-rails-rails-activists/</link>
		<comments>http://blogspot.fluidnewmedia.com/2009/01/help-support-rails-rails-activists/#comments</comments>
		<pubDate>Tue, 06 Jan 2009 11:11:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[Rails Activisits]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=1010</guid>
		<description><![CDATA[This is a follow up post from the one I read over at Rails Envy.  Indeed its true that Rails need Active Members for their growing community, but the fact is that they don&#8217;t and this is one of the reasons Greg Pollack posted on his blog.
Read what Greg had to say:
Here in the [...]]]></description>
			<content:encoded><![CDATA[<p></p><p class ="alert">This is a follow up post from the one I read over at <a href="http://www.railsenvy.com/">Rails Envy</a>.  Indeed its true that Rails need Active Members for their growing community, but the fact is that they don&#8217;t and this is one of the reasons Greg Pollack posted on his blog.</p>
<p>Read what Greg had to say:</p>
<blockquote><p>Here in the Rails community I feel we’ve been lucky enough to have several great coders who are also great leaders. I’m not just talking about the people on the Rails core, I’m talking about people who create educational media such as rails blogs, tutorials, books, classes, screencasts, podcasts. I’m also talking about anyone who has taken the time to release a Rails Plugin or Gem, support new Rails developers (like on mailing lists, forums, or IRC), or run events promoting Rails or Ruby.</p>
<p>Doing this sort of community development (as you may already know), can often be a thankless job. It may feel like the people at the top (or in our case, the core developers) get all the credit. Just like I’ve heard people say “Why bother coding a Rails patch, it won’t get accepted” in regards to code, I’ve also heard “Why bother producing this Rails content, if it won’t be appreciated or recognized” in regards to community development. Thus, I’ve personally done my best to recognize and publicize these people, either by promoting them in the Rails Envy Podcast or through the Ruby Hero Awards, but sometimes I wish I could do more.</p>
</blockquote>
<p>You know that this man is sincere about Rails and knows exactly where it is headed in the future.  Ok, so you are not a great coder (don&#8217;t worry you will be if you take the time to).  You can help out however by contributing to anyone of these destinations or by signing up:</p>
<p><a href="http://rails.uservoice.com/">Rails User Voice</a><br />
<a href="http://www.railsenvy.com/">Rails Envy</a> => Start by commenting on their blog.<br />
<a href="http://groups.google.com/group/rails-activism">Rails Google Activist Group</a></p>
<p>Two other points that i liked (from the Rails Envy blog)</p>
<h3>Empower People to do good work:</h3>
<blockquote><p>If you want to help with the documentation, you have an idea for a new resource, or you want to completely redo the wiki, let us know. Come to us with your ideas on how you can support the community on the internet or even in your local neighborhood. Lets figure out how we can help you spread the word.
</p>
</blockquote>
<h3>Listen to the community</h3>
<blockquote><p>I care a great deal about growing Rails in 2009, and pushing it deeper into the enterprise. Each of the Activists has their own initiatives and projects to help do this, but we’re going to need community involvement to attack some of the bigger issues. Two examples of this might include fixing the Wiki, and the creation of some sort of Rails Book.</p>
</blockquote>
<p>Valid points by Greg no doubt, so let the Rails Core team do what they do best => and that is program.  I for one will help out wherever i can, even if it means spending extra hours on the computer aside all my other work..</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2009/01/help-support-rails-rails-activists/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Class Declarations in Rails Migrations</title>
		<link>http://blogspot.fluidnewmedia.com/2009/01/class-declarations-in-rails-migrations/</link>
		<comments>http://blogspot.fluidnewmedia.com/2009/01/class-declarations-in-rails-migrations/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 16:02:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[migrations]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=991</guid>
		<description><![CDATA[This is an unforgettable mistake i made today while running some migrations in Rails.
Here is the first migration file. It was generated by using this simple command:
ruby script/generate model Articles
Simple enough right?  The output of the generation was:

def self.up
  create_table :articles do &#124;t&#124;
    t.column :user_id, :integer
    t.column [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>This is an unforgettable mistake i made today while running some migrations in Rails.</p>
<p>Here is the first migration file. It was generated by using this simple command:</p>
<p><code>ruby script/generate model Articles</code></p>
<p>Simple enough right?  The output of the generation was:</p>
<pre lang ="rails">
def self.up
  create_table :articles do |t|
    t.column :user_id, :integer
    t.column :title, :string
    t.column :synopsis, :text, :limit => 1000
    t.column :body, :text, :limit => 20000
    t.column :published, :boolean, :default => false
    t.column :created_at, :datetime
    t.column :updated_at, :datetime
    t.column :published_at, :datetime
    t.column :category_id, :integer
  end

def self.down
  drop_table :categories
 end
end
</pre>
<p>When i went ahead and tried the rake command to migrate to my database:  <code>rake db:migrate</code> I kept getting an error &#8220;Uninitialized constant Create Articles&#8221; Rake Aborted!!  </p>
<p>Having forgot that everything in Rails is Object Orientated (extends from one base class or another) i overlooked two things.</p>
<ol>
<li>I did not declare the class and what base it extended</li>
<li>I did not add the schema file name into my migration file</li>
</ol>
<p>Usually Rails generates the schema and adds the base class (Active Record) but this time it didn&#8217;t.  Anyhow the fix was easy enough&#8230;</p>
<pre lang ="rails">
#20090106022023_create_articles.rb
class CreateArticles < ActiveRecord::Migration
  def self.up
    create_table :articles do |t|
      t.belongs_to :user, :category
      t.string :title
      t.text :synopsis, :limit => 1000
      t.text :body, :limit => 20000
      t.boolean :published, :default => false
      t.datetime :published_at
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end
</pre>
<p>So this is a classic mistake of us all having our moments..Thanks again to the users over at <a href="http://stackoverflow.com/">Stack Overflow</a> for helping out.  Their are some excellent trouble shooters out there.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2009/01/class-declarations-in-rails-migrations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Relic:  Monitor your Rails Apps without fuss!</title>
		<link>http://blogspot.fluidnewmedia.com/2009/01/new-relic-monitor-your-rails-apps/</link>
		<comments>http://blogspot.fluidnewmedia.com/2009/01/new-relic-monitor-your-rails-apps/#comments</comments>
		<pubDate>Fri, 02 Jan 2009 13:43:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[production]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=976</guid>
		<description><![CDATA[
RPM Lite is a FREE, supported Rails production monitoring product that helps you keep your app humming. You get deep, real-time visibility into your app, so you always know what&#8217;s up. Use it on as many applications and hosts as you like. For as long as you like.
Troubleshoot in development. Troubleshoot in production. Build high [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.newrelic.com/index.html"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/01/new_relic.jpg" alt="New Relic:  Monitor Your Rails Apps" title="New Relic:  Monitor Your Rails Apps" width="550" height="547" class="alignnone size-full wp-image-979" /></a></p>
<blockquote><p><a href="http://www.newrelic.com/RPMlite.html">RPM Lite</a> is a FREE, supported Rails production monitoring product that helps you keep your app humming. You get deep, real-time visibility into your app, so you always know what&#8217;s up. Use it on as many applications and hosts as you like. For as long as you like.</p>
<p>Troubleshoot in development. Troubleshoot in production. Build high speed into your app from the very beginning.</p>
</blockquote>
<p><a href="http://www.newrelic.com/RPMlite.html">Sign up for New Relic (its free!!)</a></p>
<p>I spent two minutes checking it out with the *small flex/rails app that i made the other day.  What i liked straight off the bat was two things:</p>
<ol>
<li>Installing the plugin:  Easy as pie!  I&#8217;m not exactly sure if you can install it without signing up, nevertheless it was a cinch! </li>
<li>Point and Go!:  All you got to do is point your browser to:<br />
<code>http://localhost:3000/newrelic</code> and you are done!!
</ol>
<p><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2009/01/new_relic-live.jpg" alt="New Relic:  Easy to install and get your performance stats!" title="New Relic:  Easy to install and get your performance stats!" width="550" height="627" class="alignnone size-full wp-image-985" /></p>
<p>So its pretty much a straight outta the box type of deal here.  Will definitely be using this little baby from now on!</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2009/01/new-relic-monitor-your-rails-apps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Our First Ruby on Rails Training Session</title>
		<link>http://blogspot.fluidnewmedia.com/2008/12/our-first-ruby-on-rails-training-session/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/12/our-first-ruby-on-rails-training-session/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 13:53:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[Business Acumen]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=950</guid>
		<description><![CDATA[Today we had our first training session on Ruby and Ruby on Rails.  The boys over at office where extremely excited and so was I.  We went over:

What is Ruby?
What is Rails?
History of Ruby and Ruby on Rails.
Brief Approach to MVC and Design Patterns.
Skinny Vs. Fat Controllers.
Intro and History of MERB.
Intro to Git/Putty/SSH.
Pre-Requisites [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Today we had our first training session on Ruby and Ruby on Rails.  The boys over at office where extremely excited and so was I.  We went over:</p>
<ol>
<li>What is Ruby?</li>
<li>What is Rails?</li>
<li>History of Ruby and Ruby on Rails.</li>
<li>Brief Approach to MVC and Design Patterns.</li>
<li>Skinny Vs. Fat Controllers.</li>
<li>Intro and History of MERB.</li>
<li>Intro to Git/Putty/SSH.</li>
<li>Pre-Requisites (Ruby, Cap, Mongrel, Rails, Gems, SQL).</li>
<li>Difference between Instant Rails and Manual Install.</li>
<li>Common commands.</li>
<li>Installing Rails.</li>
<li>Skeleton Application.</li>
<li>Intro to routes, database.yml, common folders in a Rails App.</li>
<li>Review and Questions</li>
</ol>
<p>Its amazing to see how quickly developers get the hang of Rails framework.  Some of the team members are versed in Oracle, Java and we have a dedicated database architect also. Sure it took them a little bit of Spoonfed goodness but thats aight!  We hope to continue our training till we reach a point where we can do the Agile Web Development Thang (aint too far away InshAllah). Thats not to say thay we will &#8220;ditch&#8221; our &#8220;bread and butter&#8221; work for Rails.  Its just really exciting to see Pakistanis gel with sincerity.</p>
<p>Rails has given me not only the opportunity to share with others, but bridge the divide amongst my own people.  That is itself says alot for one Framework.  With the merge of Merb and Rails (OMG), i guarantee you lots of adoption in the near future.</p>
<p class="alert">DHH will you get on making Rails easier to deploy in the near future.  In my limited knowledge deployment is one aspect that will doom Rails for early adopters out there.</p>
<p>Sheesh i need to post some pics up of the office and the guys!!  Well done team, I am proud of you all today (MashAllah).</p>
<h3>We be chopping game soon baby CHOP CHOP CHOP!!!</h3>
<p><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/conv.jpg" alt="Linux Conversation" title="Linux Conversation" width="550" height="355" class="alignnone size-full wp-image-962" /></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/12/our-first-ruby-on-rails-training-session/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex kisses Rails</title>
		<link>http://blogspot.fluidnewmedia.com/2008/12/i-kissed-flex-and-rails-just-to-try-it/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/12/i-kissed-flex-and-rails-just-to-try-it/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 12:36:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[Flex]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=876</guid>
		<description><![CDATA[
Working with rails is a lot of fun, I&#8217;ll admit, but when you throw Flex into the Picture its like &#8220;The Real Side of The Force&#8221;.  This is a small tutorial demonstrating how to get up and running with Flex and Rails!! 
^This tutorial is for Windows users (yuck, can&#8217;t wait to get onto [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/flex_rails.jpg" alt="Flex on Rails" title="Flex on Rails" width="550" height="111" class="alignnone size-full wp-image-915" /></p>
<p>Working with rails is a lot of fun, I&#8217;ll admit, but when you throw <a href="http://www.flex.org">Flex</a> into the Picture its like &#8220;The Real Side of The Force&#8221;.  This is a small tutorial demonstrating how to get up and running with Flex and Rails!! </p>
<p class="alert">^This tutorial is for Windows users (yuck, can&#8217;t wait to get onto Linux), and is inspired by Peter Armstrongs Flexible Rails Book. Pre requisites for this tutorial are:  Flex Builder/Rails 2.2.2/mysql (not needed but pre configured) and thats about it.  If you are running an older version of Flex or Rails try and follow along, it should work out as its a basic demo without database interaction.</p>
<h3>Configuring the Application:</h3>
<ol>
<li>CREATE YOUR APPLICATION:  This is very easy just create the app by using this command</li>
<pre lang="rails">rails -d mysql flexonrails # tell Rails to use mysql instead of the default sqlite3 adapter</pre>
<p class="alert">*You should modify your command line prompt to start up with the directory your Rails Apps reside.  My directory is D:/Rails Apps.  All you have to do is click on the Command Line Shortcut and define the path in the &#8220;Start In&#8221; field.</p>
<p>
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/cmd_shortcut.jpg" alt="cmd_shortcut" title="cmd_shortcut" width="372" height="321" class="alignnone size-full wp-image-886" /></p>
<p>Other commands that might come in handy:<br />
<code>D:\Rails Apps> mkdir flexonrails //create a directory named "flexonrails"</code><br />
<code>D:\RailsApps> cd flexonrails //cd into the dir. you just created</code></p>
<p>You can also use an IDE of your choice to create the application.  I just switched over to netbeans.</p>
<p><span id="more-876"></span></p>
<li>CHECK IF THE APP IS WORKING:  Point your web browser at http://localhost:3000/ and you should get your normal Rails screen showing.
<p class="alert">Make sure that you create your database (even though we aren&#8217;t using it in this small demo.)  You should get used to doing that.</p>
<p><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/localhost.jpg" alt="Your &quot;flexonrails&quot; App @ http://localhost:3000/" title="Your &quot;flexonrails&quot; App @ http://localhost:3000/" width="537" height="445" class="alignnone size-full wp-image-893" /></p>
<li>CREATE THE FLEX PROJECT:  I will be using Flex Builder 3 here, but you can easily use the FLEX SDK.  Before you go ahead and create the project make sure to create these folders within your application direcotry.<br />
<code>D:\Rails Apps\flexonrails> mkdir app/flex //creates the flex dir within the app dir.</code><br />
&#8230;.<br />
<code>D:\Rails Apps/flexonrails> mkdir public/bin //creates the bin dir withing the public dir.</code></p>
<p>&#8230;<br />
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/flex_project1.jpg" alt="Create a Flex Project" title="Create a Flex Project" width="550" height="495" class="alignnone size-full wp-image-899" /></p>
<p>&#8230;<br />
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/flex_project2.jpg" alt="Change the output folder to public\bin" title="Change the output folder to public\bin" width="550" height="495" class="alignnone size-full wp-image-901" /></p>
<p>&#8230;.<br />
<img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/flex_project3.jpg" alt="Final Flex Project Configuration" title="Final Flex Project Configuration" width="556" height="363" class="alignnone size-full wp-image-903" /></p>
<li>CREATE THE CONTROLLER IN RAILS:  Create the controller in rails by using the normal:<br />
<code>ruby script/generate controller {your controller name}</code></p>
<p>(OR copy and paste the following to Controllers/hello_controller.rb)</p>
<pre lang="rails">
class HelloController < ApplicationController
  def hello
    render :text => "hello world!"
  end
end
</pre>
<li>CREATE THE MXML:  You will have to create the mxml which is pretty straightforward here.  First rename your flexonrails.mxml to Flexonrails.mxml to avoid any naming conventions.  Then copy this code over:
<pre lang="actionscript"><?xml version="1.0" encoding="utf-8"?>
<mx:Application
	xmlns:mx="http://www.adobe.com/2006/mxml"
	layout="vertical"
	backgroundGradientColors="[#ffffff, #c0c0c0]"
	width="100%"
	height="100%">
<mx:HTTPService
	id="helloSvc"
	url="/hello/sayhello"
	method="POST"/>
<mx:Button label="call hello service"
	click="helloSvc.send()"/>
<mx:TextInput text="{helloSvc.lastResult}"/>
</mx:Application>
</pre>
<li>BUILD THE PROJECT AND POINT:  All you have to do now is build the project (In Flex Project>Build Project and make sure Build Automatically is unchecked).
<p>Next point your browser to:<br />
<code>http://localhost:3000/bin/FlexonRails.html</code>
</ol>
<p>That should do it for you.  In case it doesn&#8217;t work make sure that you:<br />
(1)  Saved your files.<br />
(2)  Configured Rails properly.<br />
(3)  Configured your Flex Builder Project Properly.<br />
(4)  Created the public/bin AND app/flex sub directories.</p>
<p>
This should give some good insight on how to setup a Rails and Flex Project.  Sure it might take some time to start creating bigger apps, and apps that connect to a database, but this is sure a good start.</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/12/i-kissed-flex-and-rails-just-to-try-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Moving over to NetBeans!</title>
		<link>http://blogspot.fluidnewmedia.com/2008/12/moving-over-to-netbeans/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/12/moving-over-to-netbeans/#comments</comments>
		<pubDate>Sat, 27 Dec 2008 10:47:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=865</guid>
		<description><![CDATA[Judging from this screenshot take a guess why I am moving over to the NetBeans IDE, and really soon!  Scite is great to get started but is really painful when you start working with lots of files.  It just comes bundled with the Ruby Installer so it&#8217;s **convenient to use.

Check out the some [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Judging from this screenshot take a guess why I am moving over to the <a href="http://www.netbeans.org">NetBeans IDE</a>, and really soon!  <a href="www.scintilla.org/SciTE.htm">Scite</a> is great to get started but is really painful when you start working with lots of files.  It just comes bundled with the Ruby Installer so it&#8217;s **convenient to use.</p>
<p><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/scite1.gif" alt="Scite Editor" title="Scite Editor" width="550" height="704" class="alignnone size-full wp-image-869" /></p>
<p>Check out the some of what other people are using over at <a href="http://css.dzone.com/news/best-rails-ide-what-do-you-thi">The Web Builder Zone.</a></p>
<p>  Does anyone have anymore suggestions?</p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/12/moving-over-to-netbeans/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Capi-Who?, Capi-What? =&gt; &#8220;CAPISTRANO&#8221; You All</title>
		<link>http://blogspot.fluidnewmedia.com/2008/12/capi-who-capi-what-capistrano-you-all/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/12/capi-who-capi-what-capistrano-you-all/#comments</comments>
		<pubDate>Wed, 24 Dec 2008 13:30:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[deploy]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=831</guid>
		<description><![CDATA[
I&#8217;ve developed a couple of small apps with Rails now.  Its been a ROR&#8217;ING ride allright + alot of fun to get your hands dirty. I have heard people diss on Capistrano (misguided bloggers) alot on different blogs, talking about:  
PHP did not kill Rails&#8211;Rails killed Rails. Who in their right mind is [...]]]></description>
			<content:encoded><![CDATA[<p></p><p><a href="http://www.capify.org"><img src="http://blogspot.fluidnewmedia.com/wp-content/uploads/2008/12/capistrano.jpg" alt="Capistrano:  Remote-Administration Utility" title="Capistrano:  Remote-Administration Utility" width="550" height="209" class="alignnone size-full wp-image-846" /></a></p>
<p>I&#8217;ve developed a couple of small apps with Rails now.  Its been a ROR&#8217;ING ride allright + alot of fun to get your hands dirty. <strong>I have heard people diss on Capistrano (misguided bloggers) alot on different blogs, talking about:</strong>  </p>
<blockquote><p>PHP did not kill Rails&#8211;Rails killed Rails. Who in their right mind is going to want to deploy 5 &#8211; 10 30 meg preforked processes per application from whatever location on this thing called &#8220;mongrel&#8221; and have the whole mishmash marshalled by this other thing called &#8220;Cappucino&#8221;&#8230; er &#8220;Capistrano&#8221;, which is lipstick on a pig, because rails is a pig no doubt about it. I need one server with several preforked processes for ALL applications to be served.</p>
</blockquote>
<p>Rails is a pig? Errm don&#8217;t blame Rails but Scoble.   Note Twitter’s unique position as a web application. It is neither solely a messaging app or a social networking app, but a combination of both. In the past companies had been able to build applications based on one of those foundations, but not both.</p>
<p>Ok onward with <a href="www.capify.org/">Capistrano</a>.  I am definitely going to give deploying my apps a try with Capistrano, it is the standard way of deployment for Rails apps these days (at least so i have seen on the web).</p>
<blockquote><p>I&#8217;ve developed http://pantherfotos.com in Rails in about 3 months (3 hours a day working on the train from and to work). It contains about 60 database tables which power: forums, blogs, photo uploads, google map integration, dzone/digg type listing directory, security, monthly memberships, e-commerce (selling of photos and photo albums), taxonomy (polymorphic), an articles section, member clubs (with the ability for members to create public/private clubs and clubs to create public/private forums), RSS feeds (with geotagging where available) on pretty much everything, commenting system (with akismet integration) on everything (polymorphic)&#8230;..</p>
<p>I probably forgot a few things there. Point is all this comes in at 6353 lines of code. It takes me under 30 seconds to update my website via Capistrano and Subversion.</p>
<p>PHP sucks balls. I know because I used it for three years. No PHP framework will ever turn me back to the shit side of the force!
</p>
</blockquote>
<p>I won&#8217;t say much till i start deploying my app, but i have a gut feeling that it will be just fine, even if it takes a little while to get the hang of it.  I am not taking anyones side here, however i feel Rails is definitely a complete framework that cannot be ignored or tainted by ignorant people.</p>
<p class="alert">What is Capistrano? <a href="http://weblog.jamisbuck.org/">Jamis Buck</a> is the author of the <strong>Capistrano remote-administration utilit</strong>y, and is currently employed by <a href="http://37signals.com">37signals.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/12/capi-who-capi-what-capistrano-you-all/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Active Record in Rails</title>
		<link>http://blogspot.fluidnewmedia.com/2008/12/active-record-in-rails/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/12/active-record-in-rails/#comments</comments>
		<pubDate>Mon, 15 Dec 2008 14:43:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*MVC]]></category>
		<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[model]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=788</guid>
		<description><![CDATA[Any web developer will know how important a database and its relationship can be to their web application. With that being said i would like to introduce you to Active Record.  Active Record is a Ruby library that allows your Ruby programs to transmit data and command to and from various data stores, which are [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Any web developer will know how important a database and its relationship can be to their web application. With that being said i would like to introduce you to Active Record.  Active Record is a Ruby library that allows your Ruby programs to transmit data and command to and from various data stores, which are usually relational databases.  You can also say that Active Record allows Ruby to work with databases.</p>
<h3>Brief History behind Active Record</h3>
<p>Active Record is a design pattern originally published by Martin Fowler in his book Patterns of Enterprise Application Architecture.  David Heinemeier Hansson (the creator of the Rails framework) took the concepts laid out by Mr. Fowler and implemented them as a Ruby library called Active Record.</p>
<p>Active record has been released with the Rails framework to the public and is also available as a part of the core bundle with its own Ruby Gem.</p>
<h3>Active Record and the ORM Pattern</h3>
<p>At the core of Active Record is object relational mapping or &#8220;ORM.&#8221;  These relational databases can be represented well by object based code; if we look at an example of a dummy accounts table in a typical database it would look like this:</p>
<p>Accounts table<br />
     ID field (integer; auto-incremented; primary key)<br />
     Username field (text type field)<br />
     Password field (text type field)</p>
<p>If we look at the Active Record Account class (or model) it would look something like this:</p>
<pre lang="rails">Class Account ActiveRecord::Base
#some code here
end</pre>
<p>If we look through our Rails code, we could possible create instances of different account objects like below:</p>
<pre lang="rails"># creates a new account object in memory and a new account record in our database
newacc = Account.new
newacc.Username = "Ahad"
newacc.Password = "pass*$#"
newacc.save
# creates an Account object in memory from data in Account table with ID of 1
# (equivalent to the ANSI SQL statement of "select * from accounts where ID = 1")
findacc = Account.find(1)
# deletes records from database that have username of "Ahad"
Account.delete("username = 'Ahad'")</pre>
<h3>Active Record Differs from other ORM Libraries</h3>
<p>Active record out of the box makes a number of configuration assumptions, without requiring any outside configuration files or mapping details.  The previous example takes advantage of Active Record Assumptions, so we are not required to to configure or set up any specific instructions.  This is unlike many ORM libraries such as Java&#8217;s Hibernate.</p>
<h3>MVC Concepts and Active Record</h3>
<p>Active Record is most famous as being an important part of the Ruby on Rails framework, and is being copied by many other frameworks such as Code Igniter.    What MVC does it that it breaks code into logical groupings and programs into logical functional groupings.  With Rails, the model section is generally your Active Record classes and other data-descriptive or datacommunication code. The view section remains primarily for the user interface, which tends to be a heavy dose of HTML in most Rails applications.</p>
<h3>CRUD Database Transactions and Active Record</h3>
<p>Ususally there are four tasks one can perform when working with databases, and as a group are referred ot as CRUD. </p>
<ol>
<li>(C): Creating </li>
<li>(R): Retrieving</li>
<li>(U): Updating</li>
<li>(D): Deleting</li>
</ol>
<pre lang="rails">newacc = Account.new(:username = "Ahad")
newacc.save # creates the new record in the account table
temp = Account.find(1)
# =&gt; selects the record associated with id of 1 from the account table
temp.username = 'Ahad' # =&gt; assigns a value to the username attribute of the object
temp.save # does the actual update statement applying the changes we just stated.
Account.destroy_all(1) # deletes the record in the account table with id of 1</pre>
<p>There are many more options to that we can consider here, but the above is the most generic or the most common.</p>
<h3>How the Active Record Library applies to Ruby code</h3>
<p>What you have to remember is when working with Active Record is that its all Ruby code.  Anything you do with Ruby objects (inheritance, overriding methods, etc etc) can also be done with Active Record objects. The whole idea is to represent database records and objects, but they really are two separate things; Ruby onjects and database records.</p>
<h3>Active Record:  The smart choice</h3>
<p>There are many reasons why Active Record is the smart choice.  One is its easy to install, simple to write and read, and also a full feature object based code.  If you look below at the benefits of Acitve Record, there is no doubt that this library is worth learning about.</p>
<ul>
<li><span style="color: #ff0000;">Simplified configuration and default assumptions (Convention over Configuration).</span></li>
<li>Associations among objects.</li>
<li>Automated mapping b/w tables and classes and b/w columns and attributes.</li>
<li>Data Validations.</li>
<li>Callbacks</li>
<li><span style="color: #ff0000;">Inheritance hierarchies.</span></li>
<li>Direct manipulation of data as well as schema objects.</li>
<li>Database abstraction through adapters.</li>
<li>Logging support.</li>
<li>Migration support.</li>
<li><span style="color: #ff0000;">Active Record integrated in other emerging frameworks like Merb.</span></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/12/active-record-in-rails/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Props to the Rails Community:  from Karachi, Pak</title>
		<link>http://blogspot.fluidnewmedia.com/2008/12/props-to-the-rails-community-from-karachi-pak/</link>
		<comments>http://blogspot.fluidnewmedia.com/2008/12/props-to-the-rails-community-from-karachi-pak/#comments</comments>
		<pubDate>Fri, 12 Dec 2008 15:04:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[*Ruby on Rails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Rails Community]]></category>

		<guid isPermaLink="false">http://blogspot.fluidnewmedia.com/?p=782</guid>
		<description><![CDATA[Man oh man am i excited about Rails.  I just wanted to give a special shout out to the Rails community and list some resources where you might learn from.
A Special Shout out to:
Amy Hoy:  Amy is an interface designer and developer from Maryland.  She has an attractive style of writing and gives alot of [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Man oh man am i excited about Rails.  I just wanted to give a special shout out to the Rails community and list some resources where you might learn from.</p>
<h3>A Special Shout out to:</h3>
<p><a href="http://slash7.com">Amy Hoy</a>:  Amy is an interface designer and developer from Maryland.  She has an attractive style of writing and gives alot of information about Rails + interface design on her blog at <a href="http://www.slash7.com">Slash7</a>.  Check her out, you won&#8217;t regret it =&gt; she has some great content and cheat sheets.</p>
<p><a href="http://advent2008.hackruby.com/">RubyAdvent</a>:  An Advent calender type for the Rails community.  I especially liked this post:  <a href="http://advent2008.hackruby.com/past/2008/12/7/generating_real_fake_content/">Generating (Real) Fake Content.</a> but don&#8217;t take my word for it head over and check it out yourself and give up some of that comment love.  The RubyAdvent is written by <strong>Lakshan Perera</strong>.  You can visit his blog here: <a href="http://www.web2media.net/laktek/">http://www.web2media.net/laktek/</a> </p>
<p><a href="http://andyjeffries.co.uk/">Andy Jeffries:</a>  A professional Zend Certified Engineer and was the first person that recommended Rails to me. At that time (not too long ago) I was hunting around for info on PHP frameworks namely <a href="http://symfony-project.org/">Symfony</a> and <a href="http://cakephp.org/">CakePHP</a>. Read some of his posts here:</p>
<ul>
<li><a href="http://andyjeffries.co.uk/articles/why-i-think-ruby-on-rails-is-an-ideal-web-development-environment">Why I think Ruby on Rails is an ideal web development environment.</a></li>
<li><a href="http://andyjeffries.co.uk/articles/design-patterns-vs-agile-development">Design Patterns vs Agile Development.</a></li>
<li><a href="http://andyjeffries.co.uk/articles/rebuilding-a-site-from-symfony-to-rails">Rebuilding a site from Symfony to Rails.</a></li>
<li><a href="http://andyjeffries.co.uk/articles/4-reasons-why-ruby-syntax-is-better-than-phps-">4 Reasons Why Ruby Syntax Is Better Than PHP&#8217;s.</a></li>
</ul>
<h3>Rails Screencasts:</h3>
<ol>
<li><a href="https://peepcode.com/">https://peepcode.com/</a></li>
<li><a href="http://railscasts.com">http://railscasts.com</a></li>
<li><a href="http://envycasts.com/products">http://envycasts.com/products</a>  </li>
<li><a href="http://www.rubyonrails.org/screencasts">http://www.rubyonrails.org/screencasts</a></li>
</ol>
<div>Some of the screencasts from the RubyonRails site are free, but most of the others you have to pay for.  I still think that learning from pros and dishing out $50 or so is well worth it.  </div>
]]></content:encoded>
			<wfw:commentRss>http://blogspot.fluidnewmedia.com/2008/12/props-to-the-rails-community-from-karachi-pak/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
