<?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, Agile Development - Rails Ant</title>
	<atom:link href="http://www.railsant.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.railsant.com</link>
	<description>Agile Web Development &#124; Ruby on Rails</description>
	<lastBuildDate>Thu, 01 Sep 2011 14:54:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Advantages of choosing Ruby on Rails for your Startup !</title>
		<link>http://www.railsant.com/advantages-of-choosing-ruby-on-rails-for-your-startup/</link>
		<comments>http://www.railsant.com/advantages-of-choosing-ruby-on-rails-for-your-startup/#comments</comments>
		<pubDate>Thu, 01 Sep 2011 14:54:07 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[advantages]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[RoR]]></category>

		<guid isPermaLink="false">http://www.railsant.com/?p=408</guid>
		<description><![CDATA[This was a post that was long pending that we wanted to write but somehow assumed that all would know fair and square. Anyway we are putting it in words here for the benefit of the entrepreneurs and the startup &#8230;<p class="read-more"><a href="http://www.railsant.com/advantages-of-choosing-ruby-on-rails-for-your-startup/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>This was a post that was long pending that we wanted to write but somehow assumed that all would know fair and square. Anyway we are putting it in words here for the benefit of the entrepreneurs and the startup community . Ruby on Rails has come a long way from its inception and with Rails 3 we can clearly define the value differentiator of Ruby on Rails in comparison with conventional technologies.</p>
<p>1. With Ruby on Rails a Quick transformation of concepts to code is possible.<br />
2. Rapid framework building capable. Building the basic product can be very fast on ROR<br />
3. Incremental integration is possible as there is a structured framework<br />
4. Testing of code of errors is integrated as part of the process.<br />
5. Possible to reduce your lead time from configuration setting to application deployment by more than 40%.<br />
6. Build on ROR is lean and mean very compatible for mobile devices of the future.<br />
7. Your product is future ready for emerging trends to build mobile solutions and cloud models.<br />
8. Capitalise on the benefits of Opensource with strong online community presence that constantly refines code.<br />
9. ROR is best suited for BDD and Agile environment where value creation is the top priority for a project</p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/advantages-of-choosing-ruby-on-rails-for-your-startup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saying thanks to OSS maintainers</title>
		<link>http://www.railsant.com/saying-thanks-to-oss-maintainers/</link>
		<comments>http://www.railsant.com/saying-thanks-to-oss-maintainers/#comments</comments>
		<pubDate>Mon, 22 Aug 2011 16:02:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web Application Development]]></category>
		<category><![CDATA[maintainers]]></category>
		<category><![CDATA[Saying]]></category>
		<category><![CDATA[thanks]]></category>

		<guid isPermaLink="false">http://www.railsant.com/saying-thanks-to-oss-maintainers/</guid>
		<description><![CDATA[Over the last few days, Mendicant University students and staff said thanks to OSS maintainers by making tiny contributions to their projects. We did this because we were inspired by rubythankful.com and wondered if there was a way we could &#8230;<p class="read-more"><a href="http://www.railsant.com/saying-thanks-to-oss-maintainers/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Over the last few days, Mendicant University students and staff <a href="http://university.rubymendicant.com/changelog/saying-thanks-to-oss-maintainers">said thanks to OSS maintainers</a> by making tiny contributions to their projects. We did this because we were inspired by <a href="http://rubythankful.com">rubythankful.com</a> and wondered if there was a way we could take it a step farther. You&#8217;re encouraged to follow in our footsteps and do the same for a project you love!
<div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/Rubyflow?a=c4YFPhFKyX0:9K5HJmlb5Cg:3H-1DwQop_U"><img src="http://feeds.feedburner.com/~ff/Rubyflow?i=c4YFPhFKyX0:9K5HJmlb5Cg:3H-1DwQop_U" border="0"></img></a>
</div>
<p><img src="http://feeds.feedburner.com/~r/Rubyflow/~4/c4YFPhFKyX0" height="1" width="1"/><br />
<a rel="nofollow" href="http://feedproxy.google.com/~r/Rubyflow/~3/c4YFPhFKyX0/6388-saying-thanks-to-oss-maintainers">RubyFlow</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/saying-thanks-to-oss-maintainers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Paperclip: migrating from Amazon S3 to file system storage</title>
		<link>http://www.railsant.com/paperclip-migrating-from-amazon-s3-to-file-system-storage/</link>
		<comments>http://www.railsant.com/paperclip-migrating-from-amazon-s3-to-file-system-storage/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 15:17:50 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[Web Application Development]]></category>
		<category><![CDATA[code snippet]]></category>
		<category><![CDATA[paperclip]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[s3]]></category>

		<guid isPermaLink="false">http://www.railsant.com/?p=263</guid>
		<description><![CDATA[Long has a problem to migration filesystem attachment to S3 and several articles already explain. For today I just head on the problem that in reverse..  Here is my code snippet : require 'aws/s3' require 'fileutils' # Assume the original &#8230;<p class="read-more"><a href="http://www.railsant.com/paperclip-migrating-from-amazon-s3-to-file-system-storage/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Long has a problem to migration filesystem attachment to S3 and several <a href="http://stackoverflow.com/questions/6003347/paperclip-migrating-from-file-system-storage-to-amazon-s3">articles</a> already explain.</p>
<p>For today I just head on the problem that in reverse..  Here is my code snippet :</p>
<pre class="brush:ruby">    require 'aws/s3'
    require 'fileutils'

    # Assume the original s3 paperclip option is {:storage =&gt; :s3, :s3_protocol =&gt; 'https',:s3_headers =&gt; {'Expires' =&gt; 1.year.from_now.httpdate},:s3_credentials =&gt; "#{Rails.root.to_s}/config/amazon_s3.yml", :path =&gt; '/:class/:attachment/:id/:style/:filename'}
    # New paperclip options is {:storage =&gt; :filesystem, :url =&gt; '/system/:class/:attachment/:id/:style/:filename'}

    # Load credentials
    s3_options = YAML.load_file(File.join(Rails.root, 'config/amazon_s3.yml'))["production"].symbolize_keys
    bucket = s3_options.delete(:bucket)

    # Establish S3 connection
    AWS::S3::Base.establish_connection!(s3_options)

    { 'Product' =&gt; :image, 'Product' =&gt; :icon }.each do |klass_name,param|
      klass = klass_name.constantize
      # Process each attachment
      styles = klass.first.send(param).styles.keys.push(:original)

      klass.all.each_with_index do |obj, n|
        styles.each do |style|
          filesystem_path = obj.send(param).path(style)

          next if filesystem_path.blank? 

          s3_path = filesystem_path.gsub(/^.*\/system/,'')

          # File System Path =&gt; '/system/:class/:attachment/:id/:style/:filename'
          # S3 path =&gt; '/:class/:attachment/:id/:style/:filename'

          begin

            # Create Directory
            FileUtils.mkdir_p  File.dirname(filesystem_path)

            # Write File (from S3 path to filesystem path)
            File.open(filesystem_path, "wb") do |f|
              f.write(AWS::S3::S3Object.value(s3_path, bucket))
            end
          rescue Exception =&gt; e
            puts e
          end
        end
        puts "#{klass_name} Saved to #{filesystem_path} (#{n}/#{klass.count})"
      end
    end</pre>
<p>also available in<a href="https://gist.github.com/1069064"> https://gist.github.com/1069064</a> .</p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/paperclip-migrating-from-amazon-s3-to-file-system-storage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.0.9 has released</title>
		<link>http://www.railsant.com/rails-3-0-9-has-released/</link>
		<comments>http://www.railsant.com/rails-3-0-9-has-released/#comments</comments>
		<pubDate>Tue, 05 Jul 2011 02:00:28 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Ruby On Rails]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 3.0.9]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.railsant.com/rails-3-0-9-has-released/</guid>
		<description><![CDATA[Hi everybody! Rails 3.0.9 has been released! I think i will have a try and post the latest updates after my test run. The main fixed in this release are problems dealing with modifications of SafeBuffers.gem install rails or update your &#8230;<p class="read-more"><a href="http://www.railsant.com/rails-3-0-9-has-released/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Hi everybody!</p>
<p>Rails 3.0.9 has been released! I think i will have a try and post the latest updates after my test run. The main fixed in this release are problems dealing with modifications of SafeBuffers.gem install rails or update your Gemfile and bundle update while it&#8217;s hot!</p>
<h4>CHANGES</h4>
<p>The major changes in this release of Rails are bug fixes surrounding modifications to SafeBuffer strings. We had places that were modifying SafeBuffers and those places raised exceptions after the security fixes in the 3.0.8 release.</p>
<p>We&#8217;ve since updated those code paths, and now we have this nice release for you today!</p>
<p>Please check the CHANGELOG files in each section on <a href="https://github.com/rails/rails">github</a> for more details.</p>
<p>For an exhaustive list of the commits in this release, please see <a href="https://github.com/rails/rails">github</a>. Please enjoy this release of Rails!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/rails-3-0-9-has-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Railsant is now on facebook</title>
		<link>http://www.railsant.com/railsant-is-now-on-facebook/</link>
		<comments>http://www.railsant.com/railsant-is-now-on-facebook/#comments</comments>
		<pubDate>Tue, 28 Jun 2011 09:44:48 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[News and Updates]]></category>

		<guid isPermaLink="false">http://www.railsant.com/?p=241</guid>
		<description><![CDATA[That’s right: we are now syndicating our content on Facebook. So, you can follow us there and let your friends know where Ruby on Rails makes headlines every day. Rails Ant Promote Your Page Too]]></description>
				<content:encoded><![CDATA[<p>That’s right: we are now syndicating our content on Facebook. So, you can follow us there and let your friends know where Ruby on Rails makes headlines every day.</p>
<p><!-- Facebook Badge START --><a style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3b5998; text-decoration: none;" title="Rails Ant" href="http://www.facebook.com/pages/Rails-Ant/212184508818916" target="_TOP">Rails Ant</a><br />
<a title="Rails Ant" href="http://www.facebook.com/pages/Rails-Ant/212184508818916" target="_TOP"><img style="border: 0px;" src="http://badge.facebook.com/badge/212184508818916.1764.1349265551.png" alt="" width="120" height="165" /></a><br />
<a style="font-family: &quot;lucida grande&quot;,tahoma,verdana,arial,sans-serif; font-size: 11px; font-variant: normal; font-style: normal; font-weight: normal; color: #3b5998; text-decoration: none;" title="Make your own badge!" href="http://www.facebook.com/business/dashboard/" target="_TOP">Promote Your Page Too</a><!-- Facebook Badge END --></p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/railsant-is-now-on-facebook/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails 3 way of ssl redirect + enforcement</title>
		<link>http://www.railsant.com/rails-3-way-of-ssl-redirect-enforcement/</link>
		<comments>http://www.railsant.com/rails-3-way-of-ssl-redirect-enforcement/#comments</comments>
		<pubDate>Sat, 25 Jun 2011 17:21:54 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[Blog]]></category>

		<guid isPermaLink="false">http://www.railsant.com/?p=206</guid>
		<description><![CDATA[When I am looking at how to enforce ssl requirement on rails 3, I come across this post: http://stackoverflow.com/questions/3634100/rails-3-ssl-deprecation A few important note from this: The constraints now allow you to enforce a protocol otherwise it does not allow the &#8230;<p class="read-more"><a href="http://www.railsant.com/rails-3-way-of-ssl-redirect-enforcement/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>When I am looking at how to enforce ssl requirement on rails 3, I come across this post:</p>
<p><a href="http://stackoverflow.com/questions/3634100/rails-3-ssl-deprecation">http://stackoverflow.com/questions/3634100/rails-3-ssl-deprecation</a></p>
<p>A few important note from this:</p>
<ol>
<li>The constraints now allow you to enforce a protocol otherwise it does not allow the user from visiting</li>
<li>You can actually do redirect in rails routing now!</li>
</ol>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/rails-3-way-of-ssl-redirect-enforcement/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails 3.1 include CoffeeScript, jQuery, Sass as default</title>
		<link>http://www.railsant.com/rails-3-1-include-coffeescript-jquery-sass-default/</link>
		<comments>http://www.railsant.com/rails-3-1-include-coffeescript-jquery-sass-default/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 06:55:28 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[Agile Development]]></category>
		<category><![CDATA[News and Updates]]></category>
		<category><![CDATA[Ruby on Rails Consulting]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[coffee script]]></category>
		<category><![CDATA[jquery]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails3]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[sass]]></category>

		<guid isPermaLink="false">http://www.railsant.com/?p=182</guid>
		<description><![CDATA[Yes, the coming Rails 3.1 is going to be bring new library as default: CoffeeScript, jQuery, and Sass. In true Ruby and Rails style, there&#8217;s been a little controversy over today&#8217;s CoffeeScript and Sass news. While the jQuery migration was &#8230;<p class="read-more"><a href="http://www.railsant.com/rails-3-1-include-coffeescript-jquery-sass-default/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Yes, the coming Rails 3.1 is going to be bring new library as default: CoffeeScript, jQuery, and Sass.</p>
<blockquote><p>In true Ruby and Rails style, there&#8217;s been a little controversy over today&#8217;s CoffeeScript and Sass news. While the jQuery migration was pretty much accepted due to Prototype&#8217;s position six feet under, plenty of developers are familiar with JavaScript and either feel slighted by CoffeeScript&#8217;s inclusion as a default or are concerned that it&#8217;ll act as a barrier for newcomers to Rails in future.</p></blockquote>
<p>Given that you can &#8220;opt out&#8221; of having CoffeeScript and Sass included in your Rails projects by making a minor change to your Gemfile, this faux-controversy is nowhere near as interesting to me as the legitimate <a href="http://www.rubyinside.com/dhh-offended-by-rspec-debate-4610.html">RSpec vs Test::Unit debate</a> that DHH kicked off.</p>
<p>However, if you want to grab some popcorn and enjoy the bullshit, the comments <a href="https://github.com/rails/rails/commit/9f09aeb8273177fc2d09ebdafcc76ee8eb56fe33">on this GitHub commit page</a> are epic. People have even gone so far to produce graphics to express their opinions. Rock and roll. There&#8217;s also a <a href="http://search.twitter.com/search?q=%22rails+3.1%22+OR+%22coffeescript%22+OR+dhh">significant level of pie-slinging going on on Twitter</a> too. lets quickly go through the details now.</p>
<h3>jQuery &#8211; Trivial</h3>
<p style="text-align: center;"><a href="http://www.railsant.com/wp-content/uploads/2011/06/jquery1.png" rel="wp-prettyPhoto[g182]"><img class="aligncenter size-full wp-image-190" title="jquery[1]" src="http://www.railsant.com/wp-content/uploads/2011/06/jquery1.png" alt="" width="273" height="75" /></a></p>
<p>A lot of Rails applications lean on JavaScript to provide client-side and AJAX functionality. Till now, the <a href="http://www.prototypejs.org/">Prototype</a> library had been included in Rails by default as a way to make various things easier to achieve across different browsers, but <a href="http://jquery.com/">jQuery</a> has become significantly more popular over the last few years.</p>
<p>Given this, DHH&#8217;s announcement passed with little controversy since Rails developers had become used to using jQuery and installing the <a href="https://github.com/indirect/jquery-rails">jquery-rails</a> gem anyway. A good move and a progression with the times &#8211; awesome.</p>
<h3>CoffeeScript &#8211; JavaScript, Improved</h3>
<p>CoffeeScipt, which may be new to all. From <a href="http://jashkenas.github.com/coffee-script/">CoffeeScript</a> : <strong>CoffeeScript is a little language that compiles into JavaScript. I</strong>f started life as a Ruby project that converted a cleaner, JavaScript-esque language <em>into</em> JavaScript. CoffeeScript&#8217;s syntax enables you to write JavaScript in a cleaner and, often, more logical way.</p>
<p style="text-align: center;"><a href="http://www.railsant.com/wp-content/uploads/2011/06/0011.jpg" rel="wp-prettyPhoto[g182]"><img class="aligncenter size-medium wp-image-188" title="001[1]" src="http://www.railsant.com/wp-content/uploads/2011/06/0011-300x274.jpg" alt="" width="300" height="274" /></a></p>
<h3>Sass &#8211; CSS (yes) &#8211; HAML &#8211; HTML (no)</h3>
<p style="text-align: center;"><a href="http://www.railsant.com/wp-content/uploads/2011/06/haml-sass-300x2002.png" rel="wp-prettyPhoto[g182]"><img class="aligncenter size-full wp-image-191" title="haml-sass-300x200[2]" src="http://www.railsant.com/wp-content/uploads/2011/06/haml-sass-300x2002.png" alt="" width="300" height="200" /></a></p>
<p><a href="http://sass-lang.com/">Sass</a> is to CSS as CoffeeScript is to JavaScript, though to a less extreme level. In its modern form, Sass looks just like CSS but adds support for things like variables, functions, nesting, and similar useful features. Crucially, Sass is just a <em>superset</em> of CSS so you can still use regular CSS with Sass and it&#8217;ll Just Work™. You can then learn new features one by one and start using them as you like (I must admit, I&#8217;m a massive fan of Sass and I mostly stick to the variables and nesting features).</p>
<p>Reference:</p>
<p><a title="Permanent Link: How to Play with Rails 3.1, CoffeeScript and All That Jazz Right Now" rel="bookmark" href="http://www.rubyinside.com/how-to-rails-3-1-coffeescript-howto-4695.html">How to Play with Rails 3.1, CoffeeScript and All That Jazz Right Now</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/rails-3-1-include-coffeescript-jquery-sass-default/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade redmine from 0.9.x stable to 1.1 stable</title>
		<link>http://www.railsant.com/upgrade-redmin%e2%80%a6ble-1-1-stable/</link>
		<comments>http://www.railsant.com/upgrade-redmin%e2%80%a6ble-1-1-stable/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 06:53:36 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[Agile Development]]></category>
		<category><![CDATA[Ruby on Rails Consulting]]></category>
		<category><![CDATA[Consulting plugin]]></category>
		<category><![CDATA[redmine]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[scm]]></category>
		<category><![CDATA[upgrade]]></category>

		<guid isPermaLink="false">http://www.railsant.com/?p=178</guid>
		<description><![CDATA[Redmine makes it pretty easy and smooth for us to upgrade itself. Here is a link for general upgrade from Redmine: RedmineUpgrade. In 1.1 stable version, there are some good new features that 0.9.3 doesn&#8217;t have, i,e: the Gantt chart &#8230;<p class="read-more"><a href="http://www.railsant.com/upgrade-redmin%e2%80%a6ble-1-1-stable/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Redmine makes it pretty easy and smooth for us to upgrade itself. Here is a link for general upgrade from Redmine: <a href="http://www.redmine.org/projects/redmine/wiki/RedmineUpgrade">RedmineUpgrade</a>.</p>
<p>In 1.1 stable version, there are some good new features that 0.9.3 doesn&#8217;t have, i,e: the Gantt chart , the Calendar, and the new concept of Subtasks/Parent tasks and so on. For more detailed features of newest redmine, you may visit: <a href="http://www.redmine.org/projects/redmine/wiki/Features">Features</a>.</p>
<p>If you have redmine running at an old version like 0.9.x, and feel strongly like upgrading redmine to the latest stable version, you may try this simplest solution:</p>
<ol>
<li>Backup files/ and database, very important!</li>
<li>svn switch http://redmine.rubyforge.org/svn/branches/1.1-stable</li>
<li>rake db:migrate RAILS_ENV=production</li>
</ol>
<p>Note that Steps 2 and 3 must be done in your existing redmine root.</p>
<p>After you have completed the above three steps, just restart your application and you will see the new exciting Redmine, hooray!</p>
<p>Just in case of you are not familiar with linux, let me explain more:<br />
1. How to backup files?</p>
<pre class="brush:shell">cp -r your_redmine_root/files your_backup_destination/files</pre>
<p>2. How to backup database?</p>
<pre class="brush:shell">mysqldump -u username -p password redmine_db_name &lt;  your_backup_destination/redmine_db_backup.sql</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/upgrade-redmin%e2%80%a6ble-1-1-stable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails SEO pack: 5 plugins to optimize your site</title>
		<link>http://www.railsant.com/rails-seo-pack-5-plugins-optimize-site/</link>
		<comments>http://www.railsant.com/rails-seo-pack-5-plugins-optimize-site/#comments</comments>
		<pubDate>Mon, 20 Jun 2011 12:37:51 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[Agile Development]]></category>
		<category><![CDATA[Ruby on Rails Consulting]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[SEO]]></category>

		<guid isPermaLink="false">http://www.railsant.com/?p=164</guid>
		<description><![CDATA[Here I am going to share some insights on getting your Ruby on Rails site to perform better in search engines, popularly called SEO or Search Engine Optimization. We are going to use these five Rails plugins: Headliner for titles &#8230;<p class="read-more"><a href="http://www.railsant.com/rails-seo-pack-5-plugins-optimize-site/">Read more &#187;</a></p>]]></description>
				<content:encoded><![CDATA[<p>Here I am going to share some insights on getting your <a href="http://rubyonrails.org/">Ruby on Rails</a> site to perform better in search engines, popularly called SEO or <a href="http://en.wikipedia.org/wiki/Search_engine_optimization">Search Engine Optimization</a>.</p>
<p>We are going to use these five Rails plugins:</p>
<ol>
<li>Headliner for titles</li>
<li>Metamagic for meta tags</li>
<li>Gretel for breadcrumbs</li>
<li>FriendlyId for friendly URLs</li>
<li>Dynamic Sitemaps for sitemaps</li>
</ol>
<h3>1. Titles using Headliner</h3>
<p><a href="http://github.com/mokolabs/headliner">Headliner</a> is a Ruby on Rails plugin for creating titles in a <code>&lt;title&gt;</code> tag. The plugin makes it easy to define your titles without having to define it in several places.</p>
<p>Titles are important in your SEO pack because they tell search engine users what content is in your individual pages.</p>
<p>In your <code>application.html.erb</code>:</p>
<pre class="brush:xml">&lt;head&gt;
&lt;%= title :site =&gt; "My Awesome Site",
:separator =&gt; "—",
:reverse =&gt; true %&gt;
...
&lt;/head&gt;</pre>
<p>In your view:</p>
<pre class="brush:xml">&lt;h1&gt;&lt;%= title "Contact info" %&gt;&lt;/h1&gt;</pre>
<p>Would generate the following:</p>
<pre class="brush:xml">&lt;head&gt;
&lt;title&gt;Contact info — My Awesome Site&lt;/title&gt;
...
&lt;/head&gt;</pre>
<p><span style="font-size: 15px; font-weight: bold;">2. Meta tags using Metamagic</span></p>
<p><a href="http://github.com/lassebunk/metamagic">Metamagic</a> is a Ruby on Rails plugin for generating meta tags.</p>
<p>Despite what you may have heard, meta tags are still important in your SEO pack, especially the <code>description</code> meta tag which Google uses in addition to the page content to both find and display your site.</p>
<p>In your <code>application.html.erb</code>:</p>
<pre class="brush:xml">&lt;head&gt;
...
&lt;%= metamagic :title =&gt; @title %&gt;
...
&lt;/head&gt;</pre>
<p>(the <code>:title =&gt; @title</code> part is to automatically retrieve the title from the above mentioned Headliner plugin.)</p>
<p>In your view:</p>
<pre class="brush:xml">&lt;% meta :description =&gt; "This is my page description.",
:keywords =&gt; "one, two, three" %&gt;</pre>
<p>Would generate the following:</p>
<pre class="brush:xml">&lt;head&gt;
...
&lt;meta name="title" content="Page title set using Headliner" /&gt;
&lt;meta name="description" content="This is my page description." /&gt;
&lt;meta name="keywords" content="one, two, three" /&gt;
...
&lt;/head&gt;</pre>
<h3>3. Breadcrumbs using Gretel</h3>
<p><a href="http://github.com/lassebunk/gretel">Gretel</a> is a Ruby on Rails plugin for generating <a href="http://en.wikipedia.org/wiki/Breadcrumb_%28navigation%29">breadcrumbs</a>.</p>
<p>Breadcrumbs are important in your SEO pack as they tell both users and search engines the location or “path” to your pages. Google will also often display the breadcrumb instead of the page URL.</p>
<p>In your <code>application.html.erb</code>:</p>
<pre class="brush:xml">&lt;body&gt;
...
&lt;div id="breadcrumb"&gt;
&lt;%= breadcrumb :pretext =&gt; "You are here:",
:separator =&gt; "›",
:autoroot =&gt; true,
:show_root_alone =&gt; false,
:link_last =&gt; false %&gt;
&lt;/div&gt;
...
&lt;/body&gt;</pre>
<div>In <code>config/initializers/breadcrumbs.rb</code>:</div>
<div>
<p><span style="font-family: monospace;"> </span></p>
<pre class="brush:ruby">Gretel::Crumbs.layout do
crumb :root do
link "Home", root_path
end
crumb :articles do
link "Articles", articles_path
end
crumb :article do |article|
link article.title, article_path(article)
parent :articles
end
end</pre>
</div>
<p>In your controller:</p>
<pre class="brush:ruby">def show
@article = Article.find(params[:id])
end</pre>
<p>In your view:</p>
<pre class="brush:xml">&lt;% breacrumb :article, @article %&gt;</pre>
<p>Would generate a breadcrumb like this:</p>
<pre class="brush:xml">&lt;div id="breadcrumb"&gt;
You are here: &lt;a href="/"&gt;Home&lt;/a&gt; › &lt;a href="/articles"&gt;Articles&lt;/a&gt; › My Article
&lt;/div&gt;</pre>
<h3>4. Friendly URLs using FriendlyId</h3>
<p><a href="http://github.com/norman/friendly_id">FriendlyId</a> is a Ruby on Rails plugin for generating <a href="http://en.wikipedia.org/wiki/Clean_URL">friendly URLs</a>.</p>
<p>Friendly URLs are important in your SEO pack as they tell users and search engines what lies beneath the URL, e.g. <code>/articles/34</code> becomes<code>/articles/my-awesome-article</code>.</p>
<p>In your model:</p>
<pre class="brush:ruby">class Article &lt; ActiveRecord::Base
has_friendly_id :title,
:use_slug =&gt; true,
:approximate_ascii =&gt; true
end</pre>
<p>In your controller:</p>
<pre class="brush:ruby">def create
@article = Article.create(:title =&gt; "My awesome article")
redirect_to article_path(@article) # =&gt; /articles/my-awesome-article
end</pre>
<h3>5. Sitemaps using Dynamic Sitemaps</h3>
<p><a href="http://github.com/lassebunk/dynamic_sitemaps">Dynamic Sitemaps</a> is a Ruby on Rails plugin for generating <a href="http://en.wikipedia.org/wiki/Sitemaps">sitemaps</a> in the<a href="http://sitemaps.org/">sitemaps.org</a> XML format specification.</p>
<p>Sitemaps are important in your SEO pack because they enable search engine crawlers to find all of your pages.</p>
<p>In <code>config/initializers/sitemap.rb</code>:</p>
<pre class="brush:ruby">Sitemap::Map.draw do
url root_url, :last_mod =&gt; DateTime.now, :change_freq =&gt; 'daily', :priority =&gt; 1
url about_url, :change_freq =&gt; 'monthly', :priority =&gt; 0.5
url contact_url, :change_freq =&gt; 'monthly', :priority =&gt; 0.5
url terms_url, :change_freq =&gt; 'monthly', :priority =&gt; 0.5
autogenerate :articles, :last_mod =&gt; :updated_at, :change_freq =&gt; 'weekly', :priority =&gt; 0.8
end</pre>
<p>Would generate a sitemap like this:</p>
<pre class="brush:xml">&lt;urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9"&gt;
&lt;url&gt;
&lt;loc&gt;http://yourdomain.com/&lt;/loc&gt;
&lt;lastmod&gt;2011-03-09&lt;/lastmod&gt;
&lt;changefreq&gt;daily&lt;/changefreq&gt;
&lt;priority&gt;1&lt;/priority&gt;
&lt;/url&gt;
...
&lt;/urlset&gt;</pre>
<h3>Conclusion</h3>
<p>I hope this short guide will be of great use when you’re optimizing your page for search engines. If you have further tips or suggestions, please write a comment below.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/rails-seo-pack-5-plugins-optimize-site/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rails Ant web site revamp</title>
		<link>http://www.railsant.com/rails-ant-web-site-revamp/</link>
		<comments>http://www.railsant.com/rails-ant-web-site-revamp/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 03:47:19 +0000</pubDate>
		<dc:creator>tkwong</dc:creator>
				<category><![CDATA[News and Updates]]></category>
		<category><![CDATA[Rails Ant]]></category>

		<guid isPermaLink="false">http://127.0.0.1/railsant/?p=81</guid>
		<description><![CDATA[Our team of 8 web developers and 5 web designers is experienced in ruby on rails and agile development. Delegated team focuses on web application development and related web solution. Located in Hong Kong, GuangZhou &#38; WuHan, leveraging the power of team work.]]></description>
				<content:encoded><![CDATA[<p>Our team of 8 web developers and 5 web designers is experienced in ruby  on rails and agile development. Delegated team focuses on web  application development and related web solution. Located in Hong Kong,  GuangZhou &amp; WuHan, leveraging the power of team work.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.railsant.com/rails-ant-web-site-revamp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 1.362 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2013-05-19 07:17:55 -->
