<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Rails Playground</title>
	<atom:link href="http://railsjaipur.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://railsjaipur.wordpress.com</link>
	<description>About Ruby on Rails and Web Designing</description>
	<lastBuildDate>Tue, 01 Jun 2010 11:36:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='railsjaipur.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/ad49bef4669c8f00625f5b3d8239a220?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>Rails Playground</title>
		<link>http://railsjaipur.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://railsjaipur.wordpress.com/osd.xml" title="Rails Playground" />
	<atom:link rel='hub' href='http://railsjaipur.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Flash Player Helper [Plugin for Rails]</title>
		<link>http://railsjaipur.wordpress.com/2010/06/01/flash-player-helper-plugin-for-rails/</link>
		<comments>http://railsjaipur.wordpress.com/2010/06/01/flash-player-helper-plugin-for-rails/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 11:36:05 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Views]]></category>

		<guid isPermaLink="false">http://blog.railsjaipur.in/?p=154</guid>
		<description><![CDATA[What Is It? Flash player Helper is a Rails plugin that presents an ActionView wrapper for rendering JW Flash Player 5.1 and Image Rotator JW Flash Player is a popular open source Media player that supports most media formats. This Plugin is also backward compatible for version lesser than 5.1. To use it you need [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=154&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>What Is It?</strong></p>
<p>Flash player Helper is a Rails plugin that presents an ActionView wrapper for rendering <a href="http://www.longtailvideo.com/players/jw-flv-player/">JW Flash Player 5.1</a> and <a href="http://www.longtailvideo.com/players/jw-image-rotator/">Image Rotator</a></p>
<p>JW Flash Player is a popular open source Media player that supports most media formats. This Plugin is also backward compatible for version lesser than 5.1.</p>
<p>To use it you need to install plugin by running</p>
<pre>
script/plugin install git://github.com/bagwanpankaj/flash_player_helper.git
</pre>
<p>This will automatically setup JW Flash Player for your rails application. It also installs required files under public folder.</p>
<p>If required files are not copied autometically under public directory then you can copy them by running</p>
<pre>
rake flash_player:install
</pre>
<p>How to use</p>
<p>Include swfobject javascript into layout or view file</p>
<pre>
</pre>
<p>Now to use flash player</p>
<pre>
</pre>
<p>See here, no parameter are passed, so it works with all default parameters. only file parameter in flashvar is needed to be passed.</p>
<p>and for Image Rotator</p>
<pre>
</pre>
<p>The above command will render flash player or Image rotator with default configuration.<br />
The helper method for flah player looks like:</p>
<pre>
player(player_options = {},config = {})
</pre>
<p>and for Image Rotator</p>
<pre>
image_rotator(player_options = {},config = {})
</pre>
<p>In which *player_options* contains options that you can pass for JW Flash Player, including flashvars supported by adobe flash.<br />
Note: all the flashvars should be passed under :flahvars key in player_options as a hash like</p>
<pre>
@ 'true',:allowscriptaccess =&gt; 'true',{:flashvars =&gt; {:skin =&gt; '/swf/skins/bekle.swf', :height =&gt; '600', :file =&gt; '/sample.flv'}})%&gt;
</pre>
<p>You can find list of supported flashvars for Flash Player <a href="http://developer.longtailvideo.com/trac/wiki/Player5FlashVars">here</a> and flashvars for Image Rotator can be found <a href="http://developer.longtailvideo.com/trac/wiki/ImageRotatorVars">here</a></p>
<p>It supports skin in both format either you can pass zip file or a swf file to skin flashvars.</p>
<p>Note: Given relative path should be relative to public folder of your application.</p>
<p><strong>Credits</strong></p>
<p>Credit for this plugin goes to JW Flash Player Team for making such a awsome flash player.</p>
<p><strong>Future Addons</strong></p>
<p>Adding Flash Chart functionality to this plugin.</p>
<p><strong>More Info</strong><br />
Being very I am anable to provide detailed info here.<br />
For any specific query or info you can write me at &#8216;bagwanpankaj[_at_]railsjaipur.in&#8217;</p>
<br /> Tagged: <a href='http://railsjaipur.wordpress.com/tag/plugin/'>plugin</a>, <a href='http://railsjaipur.wordpress.com/tag/rails/'>Rails</a>, <a href='http://railsjaipur.wordpress.com/tag/ruby/'>Ruby</a>, <a href='http://railsjaipur.wordpress.com/tag/tricks/'>Tricks</a>, <a href='http://railsjaipur.wordpress.com/tag/views/'>Views</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/154/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/154/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/154/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=154&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2010/06/01/flash-player-helper-plugin-for-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>JW Silverlight Player Helper for Rails</title>
		<link>http://railsjaipur.wordpress.com/2010/05/04/jw-silverlight-player-helper-for-rails/</link>
		<comments>http://railsjaipur.wordpress.com/2010/05/04/jw-silverlight-player-helper-for-rails/#comments</comments>
		<pubDate>Tue, 04 May 2010 11:01:18 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[ActionView]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Views]]></category>

		<guid isPermaLink="false">http://blog.railsjaipur.in/?p=147</guid>
		<description><![CDATA[Recently while working on a project I needed to add JW Silverlight player. But I found it difficult to manually setup every thing. so to I started to build it in ruby way and extrated the code to make it plugin. Silverlight Player Helper provides you an Action View Helper method available to all views [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=147&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently while working on a project I needed to add JW Silverlight player. But I found it difficult to manually setup every thing. so to I started to build it in ruby way and extrated the code to make it plugin.</p>
<p>Silverlight Player Helper provides you an Action View Helper method available to all views and provides all required files that are needed to build the player.</p>
<p>JW Silverlight Player supports wmv, wma and mp3 file formats. List of all supported format can be found <a href="http://developer.longtailvideo.com/trac/wiki/SilverlightFormats" target="_blank">here</a></p>
<h3>How To Use</h3>
<p>To use silverlight_player_helper you first need to install it as a plugin</p>
<pre>
  script/plugin install git://github.com/bagwanpankaj/silverlight_player_helper.git
</pre>
<p>And you are done. This command will automatically copies all required files to default folers under your public folder.<br />
If it doesn&#8217;t do it automatically then run:</p>
<pre>
  rake sl_player:install
</pre>
<p>this rake task will copies all files to required folders.</p>
<p>Now to use this plugin write</p>
<pre>
   '/path/to/your/file.wmv',:width =&gt; 640, :height =&gt; 480) %&gt;
</pre>
<p>The minimum required options are nothing. If no file is provided then it runs default file (supplied with plugin).<br />
You can provide all options supported by JW Silverlight Player. These options can be found <a href="http://developer.longtailvideo.com/trac/wiki/SilverlightVars" target="_blank">here</a></p>
<p>For more info write me at<br />
bagwan.pankaj[_at_]railsjaipur.in</p>
<br /> Tagged: <a href='http://railsjaipur.wordpress.com/tag/plugin/'>plugin</a>, <a href='http://railsjaipur.wordpress.com/tag/rails/'>Rails</a>, <a href='http://railsjaipur.wordpress.com/tag/tricks/'>Tricks</a>, <a href='http://railsjaipur.wordpress.com/tag/views/'>Views</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/147/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/147/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/147/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=147&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2010/05/04/jw-silverlight-player-helper-for-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>Metaprogramming in Rails</title>
		<link>http://railsjaipur.wordpress.com/2010/04/17/metaprogramming-in-rails/</link>
		<comments>http://railsjaipur.wordpress.com/2010/04/17/metaprogramming-in-rails/#comments</comments>
		<pubDate>Sat, 17 Apr 2010 11:05:38 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[Rails]]></category>
		<category><![CDATA[Tricks]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[metaprogramming]]></category>

		<guid isPermaLink="false">http://blog.railsjaipur.in/?p=125</guid>
		<description><![CDATA[Meta-programming means your programming language is writing code for you. And for sure Ruby is a great language having all cool features.Rails being a great ruby framework encashes all features of ruby. Rails itself uses meta-programming every where. For example in ActiveRecord, we have dynamic method on attributes name like find_by_something(some_possible_values) find_all_by_something(spv) find_by_something_and_otherthing(some_value, other_value) In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=125&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Meta-programming means your programming language is writing code for you. And for sure Ruby is a great language having all cool features.Rails being a great ruby framework encashes all features of ruby. Rails itself uses meta-programming every where.</p>
<p>For example in ActiveRecord, we have dynamic method on attributes name like</p>
<pre>
find_by_something(some_possible_values)
find_all_by_something(spv)
find_by_something_and_otherthing(some_value, other_value)
</pre>
<p>In this topic we will see how we can meta-program in Rails. Using Meta Programming one can reduce LOC to dramatic level and it also reduce headache in maintaining code base.</p>
<p>Here I am not going into details for class_eval and instanse_eval because there are many blog post out there. But I do give some examples.</p>
<p>Consider following:</p>
<pre>
class Testt

end

Testt.class_eval do
  def foo
    "I'll be available as instance method"
  end

  def self.foo
    "I'll be available as class method"
  end
end

Testt.new().foo
=&gt; I'll be available as instance method
Testt.foo
=&gt;I  be available as class method
</pre>
<p>Let me explain that class_eval evaluates a string or code block in context of class or module it is called upon.</p>
<pre>
Testt.instance_eval do
  def foo
    "I'll be available as class method"
  end

  def self.bar
    "I'll be available as class method"
  end
end

Testt.foo
=&gt;I'll be available as class method
Testt.bar
=&gt;I'll be available as class method
</pre>
<p>instance_eval can evaluate a string or a code block in the context of the receiver.</p>
<p>The third way to define a method in class or module is define_method.</p>
<pre>
class Testt
  define_method :foo do
    "welcome"
  end
end
Testt.new().foo
=&gt; welcome

module Hello
  define_method :foo do |name|
    "welcome #{name}"
  end
end

include Hello
foo "Dave"
=&gt; welcome Dave
</pre>
<p>Now we can spice our project with metaprogramming. See how?<br />
Suppose in our project we had a model to maintain users</p>
<pre>
class User &lt; ActiveRecord::Base
  #user has one role so association is
  has_one :role
end
</pre>
<p>We also have a Role model that belongs to user. Schema for role is suppose</p>
<pre>
Role(id: integer, name: string, user_id: integer)
</pre>
<p>At the initiation of project the role known were admin and user. So I have defined two method in User model named as is_admin? and is_user?. But after some time we need to add some other roles as we need to define same function for them as well.</p>
<p>So to get rid of this we flavoured our project with bits of metaprogramming. See here how</p>
<pre>
class User &lt; ActiveRecord::Base
  #user has one role so association is
  has_one :role
  #First time when there is no method found; this method will catch that
  def self.method_missing(method_sym, *params)
    #Here we match the pattern of method and see if we can process it or not
    if method_sym.to_s =~ /^is_(.*)\?$/
      function = $1

      class_eval &lt;&lt;-END
	def method_sym.to_s
	  &quot;#{role.name == function.to_s.upcase}&quot;
        end
      END
      #Let&#039;s register this method with user class when it is invoked first time.
	send(method_sym)
    else
      super
    end
  end

  #Let this class respond for these methods
  def self.respond_to?(method_sym, *args, &amp;block)
    method_sym.to_s =~ /^is_(.*)\?$/ ? true : super
  end
end
</pre>
<br /> Tagged: <a href='http://railsjaipur.wordpress.com/tag/metaprogramming/'>metaprogramming</a>, <a href='http://railsjaipur.wordpress.com/tag/rails/'>Rails</a>, <a href='http://railsjaipur.wordpress.com/tag/ruby/'>Ruby</a>, <a href='http://railsjaipur.wordpress.com/tag/tricks/'>Tricks</a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/125/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/125/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/125/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=125&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2010/04/17/metaprogramming-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>Action Mailer Configuration for Google app or Gmail</title>
		<link>http://railsjaipur.wordpress.com/2009/12/23/using-gmail-with-rails/</link>
		<comments>http://railsjaipur.wordpress.com/2009/12/23/using-gmail-with-rails/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 18:03:54 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[ActionMailer]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[configuration]]></category>
		<category><![CDATA[smtp]]></category>

		<guid isPermaLink="false">http://blog.railsjaipur.in/?p=113</guid>
		<description><![CDATA[Recently I needed to setup smtp server to send mail. nothing was new, I simply used rails ActionMailer as one should be. It should have been working, but wait; ohhhhhh snap, it was not! It came out to be our very own google&#8217;s fault. Yes! as the email server was hosted on google app. And [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=113&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently I needed to setup smtp server to send mail. nothing was new, I simply used rails ActionMailer as one<br />
should be. It should have been working, but wait; ohhhhhh snap, it was not!</p>
<p>It came out to be our very own google&#8217;s fault. Yes! as the email server was hosted on google app. And our google uses SSL SMTP or to be precise STARTTLS for routing emails. So here I am writing down step by step, what worked for me.</p>
<p>1.  Create  #{RAILS_ROOT}/config/mailer_settings.yml with following code</p>
<pre>development:
	enable_starttls_auto:  true
	address: "smtp.gmail.com"
	port: 587
	domain:  'http://'
	authentication: plain
	user_name: "user@domain_name"
	password:  your-password

production:
	enable_starttls_auto:  true
	address: "smtp.gmail.com"
	port: 587
	domain:  'http://'
	authentication: plain
	user_name: "user@domain_name"
	password: your-password</pre>
<p><strong>Note:</strong> you can use <em>enable_starttls_auto</em> directly if your rails version &gt; 2.2 and ruby<br />
version is &gt;=1.8.7, because built-in support for starttls. If not, then also you can use it; but you first need to install <a href="http://github.com/ambethia/smtp-tls">this gem</a>.</p>
<pre>gem install ambethia-smtp-tls</pre>
<p>make dependencies</p>
<pre>#in "#{RAILS_ROOT}/config/environment.rb" write the following
config.gem "ambethia-smtp-tls", :lib =&gt; "smtp-tls", :source =&gt; "http://gems.github.com/"</pre>
<p>2. Load mail configuration settings, if not in test environment</p>
<pre># Load mail configuration if not in test environment
if RAILS_ENV != 'test'
	email_settings = YAML::load(File.open("#{RAILS_ROOT}/config/mailer_settings.yml"))
	ActionMailer::Base.smtp_settings = email_settings[RAILS_ENV] unless email_settings[RAILS_ENV].nil?
end</pre>
<p> <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Happy Boarding</p>
<br /> Tagged: ActionMailer, configuration, Rails, smtp <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/113/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/113/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/113/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=113&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2009/12/23/using-gmail-with-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>Webrat Steps extension (Be more DRY)</title>
		<link>http://railsjaipur.wordpress.com/2009/12/03/webrat-steps-extensions/</link>
		<comments>http://railsjaipur.wordpress.com/2009/12/03/webrat-steps-extensions/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 10:40:29 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[BDD]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[Ruby]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Webrat]]></category>

		<guid isPermaLink="false">http://blog.railsjaipur.in/?p=64</guid>
		<description><![CDATA[Recently when I was working with Cucumber and Webrat, I found default webrat definition very interesting. Even in some case I didn&#8217;t even had to write a single step definition. But while proceeding I found that something is missing from webrat definition. So I decided to extend it. And come up with some methods defined [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=64&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Recently when I was working with Cucumber and Webrat, I found default webrat definition very interesting. Even in some case I didn&#8217;t even had to write a single step definition. But while proceeding I found that something is missing from webrat definition. So I decided to extend it. And come up with some methods defined as below.</p>
<p>To use them just download <a href="http://blog.railsjaipur.in/downloads/webrat_steps_extension.rb">this file</a> and put it under features/step_definitions/</p>
<p>You can copy below code clipboard</p>
<pre>#Created By Bagwan Pankaj (RailsJaipur) “http://railsjaipur.in/”
#This file is an extension of default webrat steps. some of the webrat steps have been extended
#in this file so that one need not to write unrequired steps.
#Extends default
#USE: When I follow //
When /^I follow \/([^\/]*)\/$/ do |regexp_link|
  click_link(regexp_link)
end

#USE: When I follow // within ""
When /^I follow \/([^\/]*)\/ within "([^\"]*)"$/ do |regexp_link, parent|
  click_link_within(parent,regexp_link)
end

#USE: Then It should not include tag ""
Then /^It should not include tag "([^\"]*)"$/ do |tag|
  assert_have_no_selector(tag, :count =&gt; 0)
end

#USE: Then It should not include tag "" within ""
Then /^It should not include tag "([^\"]*)" within "([^\"]*)"$/ do |tag_match, parent|
  within parent do |scope|
    scope.should_not have_selector(tag_match, :count =&gt; 0)
  end
end

#USE: Then It should not include selector ""
Then /^It should not include selector "([^\"]*)"$/ do |tag|
  Then %{It should not include tag \"#{tag}\"}
end

#USE: Then It should not include selector "" within ""
Then /^It should not include selector "([^\"]*)" within "([^\"]*)"$/ do |tag_match, parent|
  Then %{It should not include tag \"#{tag_match}\" within \"#{parent.to_s}\"}
end

#USE: Then It should include tag ""
Then /^It should include tag "([^\"]*)"$/ do |tag|
  assert_have_selector(tag)
end

#USE: Then It should include tag "" within ""
Then /^It should include tag "([^\"]*)" within "([^\"]*)"$/ do |tag_match, parent|
  within parent do |scope|
    scope.should have_selector(tag_match)
  end
end

#USE: Then It should include selector ""
Then /^It should include selector "([^\"]*)"$/ do |tag|
  Then %{It should include tag \"#{tag}\"}
end

#USE: Then It should include selector "" within ""
Then /^It should include selector "([^\"]*)" within "([^\"]*)"$/ do |tag_match, parent|
  Then %{It should include tag \"#{tag_match}\" within \"#{parent.to_s}\"}
end

#USE: When I check // within “”
When /^I check \/([^\/]*)\/ within "([^\"]*)"$/ do |field, parent|
  within parent do |scope|
    regexp = Regexp.new(field)
    scope.check(regexp)
  end
end

#USE: When /^I check “([^\"]*)” within “”
When /^I check "([^\"]*)" within "([^\"]*)"$/ do |field, parent|
  within parent do |scope|
    scope.check(field)
  end
end

#USE: When /^(?:|I )check //
When /^(?:|I )check \/([^\/]*)\/$/ do |field|
  regexp = Regexp.new(field)
  check(regexp)
end

#USE: I should be able to see  "
"
Then /^I should be able to see (\d+) "([^\"]*)"$/ do |count,selector|
  assert_have_selector(selector, :count =&gt; count)
end

#USE: I should be able to see  "
" within "
"
Then /^I should be able to see (\d+) "([^\"]*)" within "([^\"]*)"$/ do |count,selector, parent|
  within parent do  |scope|
    scope.should have_selector(selector, :count =&gt; count)
  end
end

When /^(?:|I )choose "([^\"]*)" within "([^\"]*)"$/ do |field,parent|
  within parent do |scope|
    scope.choose(field)
  end
end

When /^(?:|I )choose \/([^\/]*)\/ within "([^\"]*)"$/ do |field,parent|
  within parent do |scope|
    regexp = Regexp.new(field)
    scope.choose(regexp)
  end
end</pre>
<p>Now you can use above listed methods easily and I assure you that if you use them properly you do not have to write a single step definition.</p>
<p>Their uses can be found against USE in the downloaded file.</p>
<p><em>&#8220;Use the Rails the way Rails is&#8221;</em></p>
<p><em>Happy Boarding <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
</em></p>
<br /> Tagged: BDD, Rails, Ruby, TDD, Webrat <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/64/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/64/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/64/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=64&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2009/12/03/webrat-steps-extensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>Cucumber + Webrat CheatSheet</title>
		<link>http://railsjaipur.wordpress.com/2009/11/23/cucumber-webrat-cheatsheet/</link>
		<comments>http://railsjaipur.wordpress.com/2009/11/23/cucumber-webrat-cheatsheet/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 13:08:05 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[BDD]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[Testing]]></category>

		<guid isPermaLink="false">http://blog.railsjaipur.in/?p=59</guid>
		<description><![CDATA[Webrat &#8211; Ruby Acceptance Testing for Web applications Download PDF format Before starting here are some useful links http://gitrdoc.com/brynary/webrat http://groups.google.com/group/webrat http://webrat.lighthouseapp.com/ http://github.com/brynary/webrat #webrat on Freenode Simulating browser events 1. Visiting a URL GET a URL, following any redirects, and making sure final page is successful visit "/some/url" In general, elements can be located by their [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=124&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h3>Webrat &#8211; Ruby Acceptance Testing for Web applications</h3>
<p><a href="http://blog.railsjaipur.in/downloads/CheatSheet_Webrat.pdf">Download PDF format</a></p>
<p><strong>Before starting here are some useful links</strong></p>
<pre>	http://gitrdoc.com/brynary/webrat

http://groups.google.com/group/webrat

http://webrat.lighthouseapp.com/

http://github.com/brynary/webrat

	#webrat on Freenode</pre>
<h4>Simulating browser events</h4>
<p><strong>1. Visiting a URL<br />
</strong></p>
<p>GET a URL, following any redirects, and making sure final page is successful</p>
<pre>visit "/some/url"</pre>
<ul>
<li>In general, elements can be located by their inner text, their &#8216;title&#8217; attribute, their &#8216;name&#8217; attribute, and their &#8216;id&#8217; attribute.</li>
<li>They can be selected using a String, which is converted to an escaped Regexp effectively making it a substring match, or using a Regexp.</li>
<li>An exception is that using Strings for ids are compared exactly (using ==) rather than converted to a Regexp</li>
<li>If the element you are trying to look up does not exist, an error occurs</li>
</ul>
<p><strong>2. Visiting Link</strong></p>
<p>Links can be looked up by text, title, or id</p>
<p>for example To match&#8230; <a id="signup_link" title="Sign up" href="#">Click here to join!</a></p>
<p>we can write down like</p>
<pre>click_link "Click here to join!"             # substring text
click_link /join/i                                    # regexp text
click_link "Sign up"                             # substring title
click_link /sign.*up/i                            # regexp title
click_link /signup.*link/i                       # regexp id
click_link "signup_link"                       # exact id</pre>
<p><strong>3. Filling Up a form</strong></p>
<p>Note:</p>
<ul>
<li>All fields can be looked up by ID, name, or label inner text</li>
<li>Text fields, password fields, and text areas can be filled in using <em>fill_in</em></li>
</ul>
<p><label for="user[email]">Enter your Email</label></p>
<pre>fill_in "user_email", :with =&gt; "test@example.com"                     # exact id
fill_in /user.*email/, :with =&gt; "test@example.com"                   # regexp id
fill_in "user[email]", :with =&gt; "test@example.com"               # substring name
fill_in /user[.*mail.*]/, :with =&gt; "test@example.com"          # substring name
fill_in "<label for="user[email]">Enter your Email</label>", :with =&gt; "test@example.com"    # substring label text
fill_in /enter your email/i, :with =&gt; "test@example.com"    # regexp label text</pre>
<p>Note: Hidden fields can also be set using</p>
<pre>set_hidden_field 'user[l337_test]', :to =&gt; 'true'</pre>
<p><strong>4. Selecting from Drop Down</strong></p>
<p>Select options can be &#8216;selected&#8217; by inner text (an exact String or a Regexp to match). It can optionally be selected from a particular select field, using<br />
the usual id, name, or label text.</p>
<pre>select "Free account"
select "Free account", :from =&gt; "Account Types"
select "Free account", :from =&gt; "user[account_type]"
select "Free account", :from =&gt; "user_account_type"</pre>
<p><strong>5. Check Boxes</strong></p>
<p>Check boxes can be &#8216;checked&#8217; and &#8216;unchecked&#8217;</p>
<pre>check 'Remember me'
uncheck 'Remember me'</pre>
<p><strong>6. Radio Buttons</strong></p>
<p>Radio buttons can be also choosen, using the usual label text, name, or id.</p>
<pre>choose "Yes"</pre>
<p><strong>7. Buttons</strong></p>
<pre>click_button "Register"</pre>
<p><strong>Assertions</strong></p>
<p>check for text in the body of html tags<br />
can be a string or regexp</p>
<pre>assert_contain("Successfully created")
assert_contain(/trogdor/i)
assert_not_contain("peasants")</pre>
<p>check for a css3 selector</p>
<pre>assert_have_selector 'div.pagination'
assert_have_no_selector 'form input#name'</pre>
<p>Note: Assertion does work not inside block</p>
<p><strong>Matchers</strong></p>
<p>check for text in the body of html tags<br />
an be a string or regexp</p>
<pre>response.should contain("BURNINATOR")
response.should contain(/trogdor/i)
response.should_not contain("peasants")</pre>
<p>check for a css3 selector</p>
<pre>response.should have_selector('div.pagination')
response.should_not have_selector('form input#name')</pre>
<p><strong>Targetted actions/matchers</strong></p>
<pre>within 'div.pagination' do |scope|
	scope.click_link "1"
end</pre>
<pre>within '.shows' do |scope|
	scope.should contain("NFL")
	# unfortunately, assertions don't support this currently
end</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/124/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/124/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/124/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=124&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2009/11/23/cucumber-webrat-cheatsheet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>ME?? Relocated</title>
		<link>http://railsjaipur.wordpress.com/2009/10/17/me-relocated/</link>
		<comments>http://railsjaipur.wordpress.com/2009/10/17/me-relocated/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 04:07:09 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://railsjaipur.wordpress.com/?p=56</guid>
		<description><![CDATA[Hi Friends This Blog has been relocated to My Website Happy Boarding&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=56&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Hi Friends</strong></p>
<blockquote><p>This Blog has been relocated to <a href="http://blog.railsjaipur.in/">My Website</a> </p></blockquote>
<p>Happy Boarding&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/56/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/56/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/56/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=56&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2009/10/17/me-relocated/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>SCRUM methodology</title>
		<link>http://railsjaipur.wordpress.com/2009/10/17/scrum-methodology/</link>
		<comments>http://railsjaipur.wordpress.com/2009/10/17/scrum-methodology/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 09:48:47 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[Agile]]></category>
		<category><![CDATA[SCRUM]]></category>
		<category><![CDATA[Agile software-lifecycle SCRUM]]></category>

		<guid isPermaLink="false">http://railsjaipur.wordpress.com/?p=53</guid>
		<description><![CDATA[Rails is agile. Ummmmmmm&#8230;&#8230;&#8230;. Am I right?? Agile is awesome n so is SCRUM Confused???? There are three agile software development methodology out there. first the XP(Extreme Programming), Second Crystal Clear and third one is SCRUM. SCRUM is what that fascinates me. SCRUM is all about developing a software in an incremental iterative framework. In [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=123&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Rails is agile.<br />
Ummmmmmm&#8230;&#8230;&#8230;. Am I right??<br />
Agile is awesome n so is SCRUM<br />
Confused????</p>
<p>There are three agile software development methodology out there.<br />
first the XP(Extreme Programming), Second Crystal Clear and third one is SCRUM. SCRUM is what that fascinates me.</p>
<p>SCRUM is all about developing a software in an incremental iterative  framework. In SCRUM we provide our client a single running module of project in an certain timeline (generally 2 to 4 week) called Sprint.</p>
<div id="attachment_52" class="wp-caption aligncenter" style="width: 490px"><img class="size-full wp-image-52" title="800px-Scrum_process.svg" src="http://railsjaipur.files.wordpress.com/2009/10/800px-scrum_process-svg.png?w=480&#038;h=240" alt="SCRUM" width="480" height="240" /><p class="wp-caption-text">SCRUM</p></div>
<p>In scrum, there are three roles.<br />
1. Product Owner (or client)</p>
<p>The role of Product owner is to just Prioritize the requirement that he/she/they wanted to be developed within a limited timespan.</p>
<p>2. ScrumMaster</p>
<p>The role of ScrumMaster  (or Project Manager) is to prioritize the product backlog (given by Product Owner) and Lead the Scrum meeting (Probably in every 24 hour). Requirements are frozen once they are in sprint backlog. No one allowed to change them even Product Owner.</p>
<p>3. The Team</p>
<p>The team of 5-10 people specializes in cross functional skills (Design, develop,test.. etc.) who does the actual work (build a shippable item in a sprint)</p>
<p>That&#8217;s really it.<br />
 <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<br /> Tagged: Agile software-lifecycle SCRUM <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/123/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/123/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/123/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=123&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2009/10/17/scrum-methodology/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>

		<media:content url="http://railsjaipur.files.wordpress.com/2009/10/800px-scrum_process-svg.png" medium="image">
			<media:title type="html">800px-Scrum_process.svg</media:title>
		</media:content>
	</item>
		<item>
		<title>What is Rake</title>
		<link>http://railsjaipur.wordpress.com/2009/10/11/what-is-rake/</link>
		<comments>http://railsjaipur.wordpress.com/2009/10/11/what-is-rake/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 16:26:25 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Rails]]></category>
		<category><![CDATA[rake]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://railsjaipur.wordpress.com/?p=49</guid>
		<description><![CDATA[In Ruby Rake is a software build tool similar to linux&#8217;s make, Apache&#8217;s Ant. It is Written and use ruby Language. In rake you can define dependencies of one rake task on other pre written tasks. When we run the rake command it looks for a rakefile to load the rake task for predefined or [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=49&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>In Ruby Rake is a software build tool similar to linux&#8217;s make, Apache&#8217;s Ant.<br />
It is Written and use ruby Language.</p>
<p>In rake you can define dependencies of one rake task on other pre written<br />
tasks.</p>
<p>When we run the rake command it looks for a rakefile to load the rake task for predefined or default rake tasks then it loads rake task passed to it as a parameter.</p>
<p>If one don&#8217;t pass it parameters then it lists all the defined rake task.</p>
<br /> Tagged: Rails, rake, Ruby <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=49&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2009/10/11/what-is-rake/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
		<item>
		<title>Difference Between Gem and Plugin</title>
		<link>http://railsjaipur.wordpress.com/2009/10/11/difference-between-gem-and-plugin/</link>
		<comments>http://railsjaipur.wordpress.com/2009/10/11/difference-between-gem-and-plugin/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 16:10:51 +0000</pubDate>
		<dc:creator>railsjaipur</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[difference]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://railsjaipur.wordpress.com/?p=47</guid>
		<description><![CDATA[Now a days many developers are developing web application using ruby on rails. But a few of them know what actually the difference between &#8220;Gem&#8221; and &#8220;Plugin&#8221;. Here are some of them GEM 1. Gem is a packaged ruby application using the packaging system defined by RubyGems. 2. Rails itself is a Gem 3. We [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=47&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Now a days many developers are developing web application using ruby on rails. But a few of them know what actually the difference between &#8220;Gem&#8221; and &#8220;Plugin&#8221;.</p>
<p>Here are some of them<br />
<strong>GEM</strong><br />
1. Gem is a packaged ruby application using the packaging system defined by RubyGems.<br />
2. Rails itself is a Gem<br />
3. We can install,upgrade and query the gem version.<br />
4. Gem installed for Ruby interpreter can be used system-wide by that interpreter.</p>
<p></p>
<p><strong>Plugin</strong></p>
<p>1. Plugin is an extension of Rails Framework.<br />
2. Can not be upgraded by using a command. To upgrade one have to uninstall and then install upgraded version.<br />
3. Has to be hooked into rails application. (has to have init.rb)<br />
4. Have an install.rb file.<br />
5. Can only be used application wide.</p>
<br /> Tagged: difference, gem, plugin, Rails <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/railsjaipur.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/railsjaipur.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/railsjaipur.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/railsjaipur.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/railsjaipur.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/railsjaipur.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/railsjaipur.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/railsjaipur.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/railsjaipur.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/railsjaipur.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/railsjaipur.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/railsjaipur.wordpress.com/47/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/railsjaipur.wordpress.com/47/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/railsjaipur.wordpress.com/47/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=railsjaipur.wordpress.com&amp;blog=9431034&amp;post=47&amp;subd=railsjaipur&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://railsjaipur.wordpress.com/2009/10/11/difference-between-gem-and-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/2229664bc993fbb56b837beeca16c3ec?s=96&#38;d=&#38;r=G" medium="image">
			<media:title type="html">railsjaipur</media:title>
		</media:content>
	</item>
	</channel>
</rss>
