<?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>Tatva-Artha &#187; ruby on rails</title>
	<atom:link href="http://www.tatvartha.com/tag/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tatvartha.com</link>
	<description>meaning of &#34;it&#34;</description>
	<lastBuildDate>Sat, 22 Oct 2011 22:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Stick with ERB or move to Haml</title>
		<link>http://www.tatvartha.com/2009/06/stick-with-erb-or-move-to-haml/</link>
		<comments>http://www.tatvartha.com/2009/06/stick-with-erb-or-move-to-haml/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 15:03:34 +0000</pubDate>
		<dc:creator>Sharad</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[erb]]></category>
		<category><![CDATA[haml]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.tatvartha.com/?p=174</guid>
		<description><![CDATA[Haml is gaining popularity in Rails community. It claims higher productivity compared to defacto ERB templating. Not everybody agrees though. I see 2 short-term problem with haml. ERB is similar to it pre-decessor and hence easier to learn. Compared to JSP etc. ERB is similar, you still see lots of HTML tag with interleaved ruby [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p><img src="http://haml.hamptoncatlin.com//images/lukas/hamllogo.gif" style="BORDER-RIGHT: #000000 1px solid; BORDER-TOP: #000000 1px solid; DISPLAY: inline; FLOAT: right; BORDER-LEFT: #000000 1px solid; WIDTH: 206px; BORDER-BOTTOM: #000000 1px solid; HEIGHT: 199px" height="30" width="28"/> <a href="http://haml.hamptoncatlin.com/">Haml</a> is gaining popularity in Rails community. It claims higher productivity compared to defacto <a href="http://www.ruby-doc.org/stdlib/libdoc/erb/rdoc/">ERB templating</a>. <a href="http://groups.google.com/group/spree-user/browse_thread/thread/e1a66827e3d14f81?hl=en">Not</a> everybody agrees though. I see 2 short-term problem with haml.</p>
<ol>
<li>ERB is similar to it pre-decessor and hence easier to learn. Compared to JSP etc. ERB is similar, you still see lots of HTML tag with interleaved ruby (or Java). Although verbose, it is closer to how your HTML would finally look like.</li>
<li>If your team has a dedicated HTML programmer (Designer as we may call them). These folks are very good at plain HTML and don&#8217;t want the trouble of converting files and having all the plumbing around when working. It is not efficient for them.</li>
</ol>
<p>Despite this, I see Haml as valid alternative for following reasons:</p>
<p> <span id="more-174"></span>
<ul>
<li>Its been 2 days since I started using Haml. Obviously, I have yet to higher gain productivity but tools like <a href="http://wiki.rubyonrails.org/howtos/templates/haml">html2haml</a> help a lot with the transition. I am beginning to see that I am not far behind, in terms of productivity, compared to ERb already.</li>
<li>Especially if you don&#8217;t have a dedicated Designer/HTML programmer on your team, haml gives you another shot at productivity.</li>
<li>I am not sure if this is a good idea but you can have both on the same project, but it sure does work. In fact, you can even have layouts, partials and your main page in different templating engine. Atleast, it lowers the barrier to get started.</li>
<li>Haml gets ugly when there is too much html nesting. This is a good thing since it encourages breaking your view into partials and making it modular.</li>
<li>Haml also promotes better view design by making divs/ids/classes most concise. If you are still using tables a lot, you may find yourself using divs with haml.</li>
</ul>
<p>Try it out. It&#8217;s not that bad.</p>
<p>Enjoy!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.tatvartha.com/2009/06/stick-with-erb-or-move-to-haml/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Rails Following Core development</title>
		<link>http://www.tatvartha.com/2009/06/rails-following-core-development/</link>
		<comments>http://www.tatvartha.com/2009/06/rails-following-core-development/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 14:36:51 +0000</pubDate>
		<dc:creator>Sharad</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[ruby on rails]]></category>

		<guid isPermaLink="false">http://www.tatvartha.com/?p=173</guid>
		<description><![CDATA[If you are a passionate ruby/rails developer, you ought to be following the discussion at rubyonrails-core. Why? because the discussion (like this) that goes on about how to fix current deficiencies are really really exciting. It not only explains what the creators of the framework had in mind when designing bits and pieces and why [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>If you are a passionate ruby/rails developer, you ought to be following the discussion at <a href="http://groups.google.com/group/rubyonrails-core">rubyonrails-core</a>. Why? because the discussion (like <a href="http://groups.google.com/group/rubyonrails-core/browse_thread/thread/3b6818496d0d07f1?hl=en">this</a>) that goes on about how to fix current deficiencies are really really exciting. It not only explains what the creators of the framework had in mind when designing bits and pieces and why and why not something should be changed. Whether or not something gets accepted into the framework, it does reveal the full-truth behind the correct usability of a feature.</p>
<p>Great stuff. Enjoy!</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.tatvartha.com/2009/06/rails-following-core-development/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting a Ruby on Rails app running on a fresh Ubuntu server</title>
		<link>http://www.tatvartha.com/2009/05/getting-a-ruby-on-rails-app-running-on-a-fresh-ubuntu-server/</link>
		<comments>http://www.tatvartha.com/2009/05/getting-a-ruby-on-rails-app-running-on-a-fresh-ubuntu-server/#comments</comments>
		<pubDate>Tue, 19 May 2009 15:50:29 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.tatvartha.com/?p=142</guid>
		<description><![CDATA[Shamelessley copy/pasted this from Centostrano README&#8230; thought this would be a good reference next time I setup a slicehost slice. export HOSTS=&#60;target.host.name&#62; # Install Rails stack cap deprec:rails:install_rails_stack # Install mysql (if it's running on the same box) cap deprec:mysql:install cap deprec:mysql:config_gen cap deprec:mysql:config # Install your Rails app cap deploy:setup cap deploy cap deprec:db:create [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>Shamelessley copy/pasted this from <a href="http://github.com/sauliusgrigaitis/centostrano/tree/master">Centostrano</a> README&#8230; thought this would be a good reference next time I setup a <a href="http://www.slicehost.com/">slicehost</a> slice.</p>
<pre>
  export HOSTS=&lt;target.host.name&gt;

  # Install Rails stack
  cap deprec:rails:install_rails_stack

  # Install mysql (if it's running on the same box)
  cap deprec:mysql:install
  cap deprec:mysql:config_gen
  cap deprec:mysql:config

  # Install your Rails app
  cap deploy:setup
  cap deploy
  cap deprec:db:create
  cap deprec:db:migrate
  cap deprec:nginx:restart
  cap deprec:mongrel:restart
</pre>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.tatvartha.com/2009/05/getting-a-ruby-on-rails-app-running-on-a-fresh-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Spree Installation Issues</title>
		<link>http://www.tatvartha.com/2009/03/spree-installation-issues/</link>
		<comments>http://www.tatvartha.com/2009/03/spree-installation-issues/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 22:48:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[All]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[spree]]></category>

		<guid isPermaLink="false">http://www.tatvartha.com/?p=10</guid>
		<description><![CDATA[I am exploring Spree for the ecommerce solution that I am working on. According to reviews, Spree is one of the most widely used RoR ecommerce package in use out there. It does have a wide community base including googlegroups and is being developed actively. However, it lacks the test coverage and documentation for how [...]


No related posts.

Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.]]></description>
			<content:encoded><![CDATA[<p>I am exploring <a href="http://spreehq.org/">Spree</a> for the ecommerce solution that I am working on. According to reviews, Spree is one of the most widely used RoR ecommerce package in use out there. It does have a wide community <img class="alignright size-full wp-image-16" title="spree_logo" src="http://www.tatvartha.com/wp-content/uploads/2009/03/spree_logo.png" alt="spree_logo" width="172" height="90" />base including <a href="http://groups.google.com/group/spree-user">googlegroups</a> and is being developed actively. However, it lacks the test coverage and documentation for how to get started and how to add extensions.</p>
<p>Here are a couple of issues I faced when installing:</p>
<p><span id="more-10"></span></p>
<ul>
<li>Rails 2.3.2 is just released. So, I wanted to use latest and greatest codebase for my solution. However, it seems that latest Spree (version 0.7.0) requires rails version 2.2.2. I found the line that checks for this and tried to change it to 2.3.2 but it failed at runtime. Fair enough, spree 0.7.0 isn&#8217;t tested with 2.3.2 yet. I switched back to 2.2.2. And I had to install rails 2.2.2 (in addition to rails 2.3.2 that I have already upgraded to.</li>
<li>Once I installed rails 2.2.2, I was able to generate a base project using &#8220;spree &lt;project name&gt;&#8221;. command. I was able to perform &#8220;rake db:boostrap&#8221; to fill fake data. And then, &#8220;script/server&#8221; to see that everything is fine. All is great so far. Now, as any serious project, I wanted to freeze rails, all gems used including spree itself. I tried &#8220;rake rails:freeze:edge RELEASE=2.2.2&#8243; which installed rails 2.2.2 in my vendor/rails directory. However, it replaced my config/boot.rb with that a rails 2.2.2 app should have. This broke Spree since Spree modifies this file extensively. I had to regenerate a separate spree project to get a valid boot.rb.  I can only hope that frozen rails 2.2.2 and the boot.rb are compatible now. I can still launch my spree app fine.</li>
</ul>
<p>Next, I will looking at freezing all gems used. And, then it will be time to hit the googlegroups for how to use/customize spree codebase.</p>
<p>Anybody has any more experience with this?</p>


<p>No related posts.</p>
<p>Related posts brought to you by <a href='http://mitcho.com/code/yarpp/'>Yet Another Related Posts Plugin</a>.</p>]]></content:encoded>
			<wfw:commentRss>http://www.tatvartha.com/2009/03/spree-installation-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

