<?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>Revathyrails's Weblog</title>
	<atom:link href="http://revathyrails.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://revathyrails.wordpress.com</link>
	<description>Just another WordPress.com weblog</description>
	<lastBuildDate>Thu, 05 Nov 2009 07:33:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='revathyrails.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Revathyrails's Weblog</title>
		<link>http://revathyrails.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://revathyrails.wordpress.com/osd.xml" title="Revathyrails&#039;s Weblog" />
	<atom:link rel='hub' href='http://revathyrails.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Shipping price calculation using PayPal Website Payments Pro</title>
		<link>http://revathyrails.wordpress.com/2009/11/05/shipping-charges-calculation-in-website/</link>
		<comments>http://revathyrails.wordpress.com/2009/11/05/shipping-charges-calculation-in-website/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 07:19:55 +0000</pubDate>
		<dc:creator>revathyrails</dc:creator>
				<category><![CDATA[Paypal Tips]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[shipping price calculation]]></category>

		<guid isPermaLink="false">http://revathyrails.wordpress.com/?p=25</guid>
		<description><![CDATA[Hope there are lot more sites/blogs are available to provide details about passing billing address. Here I have given details for how to send shipping rates and calculate shipping charges to paypal. Paypal&#8217;s purchase method requires 3 arguments &#8211; money,credit card and options. money = &#8220;YOUR PRODUCT PRICE&#8221; credit_card = ActiveMerchant::Billing::CreditCard.new( :type =&#62; &#8216;visa&#8217;, :number [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=25&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hope there are lot more sites/blogs are available to provide details about passing billing address.</p>
<p>Here I have given details for how to send shipping rates and calculate shipping charges to paypal.</p>
<p>Paypal&#8217;s purchase method requires 3 arguments &#8211; money,credit card and options.</p>
<p>money = &#8220;YOUR PRODUCT PRICE&#8221;</p>
<p>credit_card = ActiveMerchant::Billing::CreditCard.new(</p>
<p>:type =&gt; &#8216;visa&#8217;,</p>
<p>:number =&gt; &#8217;4242424242424242&#8242;,</p>
<p>:month =&gt; 8,</p>
<p>:year =&gt; 2009,</p>
<p>:first_name =&gt; &#8216;Bob&#8217;,</p>
<p>:last_name  =&gt; &#8216;Bobsen&#8217;,</p>
<p>:verification_value =&gt; &#8217;123&#8242;</p>
<p>)</p>
<p>options = {</p>
<p>:ip =&gt;  request.remote_ip,</p>
<p>:shipping =&gt;YOUR SHIPPING RATE*100,</p>
<p>:handling =&gt;YOUR HANDLING RATE*100,</p>
<p>:subtotal =&gt;YOUR PRODUCT PRICE* 100,</p>
<p>:tax =&gt;YOUR TAX RATE*100,<br />
:billing_address =&gt; {<br />
:name     =&gt; params[:billing_firstname]+params[:billing_lastname],<br />
:address1 =&gt;params[:billing_address],<br />
:city     =&gt; params[:billing_city],<br />
:state    =&gt; params[:billing_state],<br />
:country  =&gt; params[:billing_country],<br />
:zip      =&gt; params[:billing_zip]<br />
},</p>
<p>:shipping_address =&gt; {<br />
:name     =&gt; params[:shipping_firstname]+params[:shipping_lastname],<br />
:address1 =&gt;params[:shipping_address],<br />
:city     =&gt; params[:shipping_city],<br />
:state    =&gt; params[:shipping_state],<br />
:country  =&gt; params[:shipping_country],<br />
:zip      =&gt; params[:shipping_zip]<br />
}</p>
<p>}</p>
<p>response = creditcard_gateway.purchase(((YOUR PRODUCT PRICE)* 100)+(YOUR SHIPPING RATE*100), credit_card, purchase_options)</p>
<p>For calculating shipping charges,paypal requires all the 4 inputs [:subtotal, :shipping, :handling, :tax] to be passed in options hash.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/revathyrails.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/revathyrails.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/revathyrails.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/revathyrails.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/revathyrails.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/revathyrails.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/revathyrails.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/revathyrails.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/revathyrails.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/revathyrails.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/revathyrails.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/revathyrails.wordpress.com/25/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/revathyrails.wordpress.com/25/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/revathyrails.wordpress.com/25/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=25&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://revathyrails.wordpress.com/2009/11/05/shipping-charges-calculation-in-website/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e424b105e7c250e9d25ae5c79c7c16?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">revathyrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Ruby on Rails 2.3.4: Security Fixes</title>
		<link>http://revathyrails.wordpress.com/2009/10/19/ruby-on-rails-2-3-4-security-fixes/</link>
		<comments>http://revathyrails.wordpress.com/2009/10/19/ruby-on-rails-2-3-4-security-fixes/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 04:17:32 +0000</pubDate>
		<dc:creator>revathyrails</dc:creator>
				<category><![CDATA[Rails Versions]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails 2.3.4]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[security fixes]]></category>

		<guid isPermaLink="false">http://revathyrails.wordpress.com/?p=22</guid>
		<description><![CDATA[Security Fixes 2.3.4 contains fixes for two security issues i) XSS Vulnerability in Ruby on Rails There is a vulnerability in the escaping code for the form helpers in Ruby on Rails. Attackers who can inject deliberately malformed unicode strings into the form helpers can defeat the escaping checks and inject arbitrary HTML. Impact Due [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=22&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<h4>Security Fixes</h4>
<p>2.3.4 contains fixes for two security issues</p>
<p>i) XSS Vulnerability in Ruby on Rails</p>
<p>There is a vulnerability in the escaping code for the form helpers in Ruby on Rails. Attackers who can inject deliberately malformed unicode strings into the form helpers can defeat the escaping checks and inject arbitrary HTML.</p>
<p>Impact</p>
<p>Due to the way that most databases either don’t accept or actively cleanse malformed unicode strings this vulnerability is most likely to be exploited by non-persistent attacks however persistent attacks may still be possible in some configurations.</p>
<p>http://weblog.rubyonrails.org/2009/9/4/xss-vulnerability-in-ruby-on-rails</p>
<p>ii) Timing Weakness in Ruby on Rails</p>
<p>There is a weakness in the code Ruby on Rails uses to verify message digests in the cookie store. Because it uses a non-constant time algorithm to verify the signatures an attacker may be able to determine when a forged signature is partially correct. By repeating this process they may be able to successfully forge a digest.</p>
<p>Impact</p>
<p>Due to issues like network latency, non-deterministic GC runs and other issues it is unlikely that this attack could be exploited in the wild within a reasonable timeframe.</p>
<p>http://weblog.rubyonrails.org/2009/9/4/timing-weakness-in-ruby-on-rails</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/revathyrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/revathyrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/revathyrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/revathyrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/revathyrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/revathyrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/revathyrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/revathyrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/revathyrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/revathyrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/revathyrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/revathyrails.wordpress.com/22/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/revathyrails.wordpress.com/22/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/revathyrails.wordpress.com/22/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=22&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://revathyrails.wordpress.com/2009/10/19/ruby-on-rails-2-3-4-security-fixes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e424b105e7c250e9d25ae5c79c7c16?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">revathyrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Facebook platform application with Ruby On Rails</title>
		<link>http://revathyrails.wordpress.com/2009/10/09/facebook-platform-application-with-ruby-on-rails/</link>
		<comments>http://revathyrails.wordpress.com/2009/10/09/facebook-platform-application-with-ruby-on-rails/#comments</comments>
		<pubDate>Fri, 09 Oct 2009 09:11:22 +0000</pubDate>
		<dc:creator>revathyrails</dc:creator>
				<category><![CDATA[Social Networking Sites in Ruby on Rails]]></category>
		<category><![CDATA[developing facebook application with ruby on rails]]></category>
		<category><![CDATA[facebook]]></category>
		<category><![CDATA[facebook implementation in ruby on rails]]></category>
		<category><![CDATA[facebook in rails]]></category>
		<category><![CDATA[facebook in ruby]]></category>
		<category><![CDATA[facebook in ruby on rails]]></category>
		<category><![CDATA[facebook integration in ruby on rails]]></category>
		<category><![CDATA[Facebook platform application with Ruby On Rails]]></category>
		<category><![CDATA[facebook tutorial]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://revathyrails.wordpress.com/?p=17</guid>
		<description><![CDATA[A complete tutorial for building a simple Facebook application in Ruby On Rails Part I &#8211; http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-with-ruby-on-rails Part II &#8211; http://www.liverail.net/articles/2007/7/16/continuing-facebook-applications-with-ruby-on-rails<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=17&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>A complete tutorial for building a <strong>simple Facebook application in Ruby On Rails</strong></p>
<p>Part I &#8211; <a href="http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-with-ruby-on-rails">http://www.liverail.net/articles/2007/6/29/tutorial-on-developing-a-facebook-platform-application-with-ruby-on-rails</a></p>
<p>Part II &#8211; <a href="http://www.liverail.net/articles/2007/7/16/continuing-facebook-applications-with-ruby-on-rails">http://www.liverail.net/articles/2007/7/16/continuing-facebook-applications-with-ruby-on-rails</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/revathyrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/revathyrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/revathyrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/revathyrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/revathyrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/revathyrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/revathyrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/revathyrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/revathyrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/revathyrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/revathyrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/revathyrails.wordpress.com/17/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/revathyrails.wordpress.com/17/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/revathyrails.wordpress.com/17/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=17&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://revathyrails.wordpress.com/2009/10/09/facebook-platform-application-with-ruby-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e424b105e7c250e9d25ae5c79c7c16?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">revathyrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Gem install rails 2.2.0</title>
		<link>http://revathyrails.wordpress.com/2009/08/13/gem-install-rails-2-2-0/</link>
		<comments>http://revathyrails.wordpress.com/2009/08/13/gem-install-rails-2-2-0/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 05:00:55 +0000</pubDate>
		<dc:creator>revathyrails</dc:creator>
				<category><![CDATA[Gem Installations]]></category>

		<guid isPermaLink="false">http://revathyrails.wordpress.com/2009/08/13/gem-install-rails-2-2-0/</guid>
		<description><![CDATA[sudo gem install rails -s http://gems.rubyonrails.org -v 2.2.0<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=15&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>sudo gem install rails -s http://gems.rubyonrails.org -v 2.2.0</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/revathyrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/revathyrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/revathyrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/revathyrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/revathyrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/revathyrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/revathyrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/revathyrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/revathyrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/revathyrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/revathyrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/revathyrails.wordpress.com/15/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/revathyrails.wordpress.com/15/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/revathyrails.wordpress.com/15/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=15&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://revathyrails.wordpress.com/2009/08/13/gem-install-rails-2-2-0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e424b105e7c250e9d25ae5c79c7c16?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">revathyrails</media:title>
		</media:content>
	</item>
		<item>
		<title>polymorphic paperclip plugin</title>
		<link>http://revathyrails.wordpress.com/2009/04/24/polymorphic-paperclip-plugin/</link>
		<comments>http://revathyrails.wordpress.com/2009/04/24/polymorphic-paperclip-plugin/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 12:15:05 +0000</pubDate>
		<dc:creator>revathyrails</dc:creator>
				<category><![CDATA[Rails plugins]]></category>

		<guid isPermaLink="false">http://revathyrails.wordpress.com/?p=5</guid>
		<description><![CDATA[Polymorphic paperclip utilizes separate tables (an assets table and an attachings table) to track your attachments. This allows for an unlimited number of attachments per item per model. Reference URL&#8217;s : http://burm.net/2008/10/17/ruby-on-rails-polymorphic-paperclip-plugin-tutorial/ http://thoughtbot.com/projects/paperclip http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=5&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Polymorphic paperclip utilizes separate tables (an assets table and an attachings table) to track your attachments. This allows for an unlimited number of attachments per item per model.</p>
<p>Reference URL&#8217;s :</p>
<p>http://burm.net/2008/10/17/ruby-on-rails-polymorphic-paperclip-plugin-tutorial/</p>
<p>http://thoughtbot.com/projects/paperclip</p>
<p>http://burm.net/2008/10/07/the-ruby-on-rails-paperclip-plugin-tutorial-easy-image-attachments/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/revathyrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/revathyrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/revathyrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/revathyrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/revathyrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/revathyrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/revathyrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/revathyrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/revathyrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/revathyrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/revathyrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/revathyrails.wordpress.com/5/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/revathyrails.wordpress.com/5/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/revathyrails.wordpress.com/5/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=5&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://revathyrails.wordpress.com/2009/04/24/polymorphic-paperclip-plugin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e424b105e7c250e9d25ae5c79c7c16?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">revathyrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Host Name</title>
		<link>http://revathyrails.wordpress.com/2007/08/22/host-name/</link>
		<comments>http://revathyrails.wordpress.com/2007/08/22/host-name/#comments</comments>
		<pubDate>Wed, 22 Aug 2007 05:59:48 +0000</pubDate>
		<dc:creator>revathyrails</dc:creator>
				<category><![CDATA[Host Name]]></category>

		<guid isPermaLink="false">http://revathyrails.wordpress.com/2007/08/22/host-name/</guid>
		<description><![CDATA[The Host Name varies for Development and Production Environment. So, Case statement has been used for providing two different URL&#8217;s for two environments as follows: case RAILS_ENV when &#8220;development&#8220; @body[:url]=&#8221;http://localhost:3000/account/login/&#8221; when &#8220;production&#8220; @body[:url]=&#8221;http://siteurl.com/account/login/&#8221; end Two solutions : Solution 1) @body[:url]=request.referer.gsub(request.request_uri,&#8221;")+&#8221;/account/login&#8221; solution 2) @body[:url]=&#8221;http://&#8221;+request.env['HTTP_HOST']+&#8221;/account/login/&#8221;  In controller : The &#8216;request&#8217; should be passed as an argument to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=4&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The <strong>Host Name</strong> varies for Development and Production Environment.</p>
<p>So, Case statement has been used for providing <strong>two different URL&#8217;s</strong> for two environments as follows:</p>
<p><strong>case RAILS_ENV</strong><br />
when &#8220;<strong>development</strong>&#8220;<br />
@body[:url]=&#8221;http://<strong>localhost:3000</strong>/account/login/&#8221;<br />
when &#8220;<strong>production</strong>&#8220;<br />
@body[:url]=&#8221;http://<strong>siteurl.com</strong>/account/login/&#8221;<br />
end</p>
<p><u><strong>Two solutions :</strong></u></p>
<p><strong>Solution 1)</strong></p>
<p>@body[:url]=<em><strong>request.referer.gsub(request.request_uri,&#8221;")</strong></em>+&#8221;/account/login&#8221;</p>
<p><strong>solution 2)</strong></p>
<p>@body[:url]=&#8221;http://&#8221;+<strong>request.env['HTTP_HOST']</strong>+&#8221;/account/login/&#8221;</p>
<p><u><strong> In controller :</strong></u></p>
<p>The &#8216;request&#8217; should be passed as an argument to the calling method as below.</p>
<p>PostNotifier.deliver_post_send(current_user,params[:email],@post,post_id,categoryname,subcategoryname,request)</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/revathyrails.wordpress.com/4/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/revathyrails.wordpress.com/4/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/revathyrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/revathyrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/revathyrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/revathyrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/revathyrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/revathyrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/revathyrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/revathyrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/revathyrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/revathyrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/revathyrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/revathyrails.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/revathyrails.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/revathyrails.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=4&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://revathyrails.wordpress.com/2007/08/22/host-name/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e424b105e7c250e9d25ae5c79c7c16?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">revathyrails</media:title>
		</media:content>
	</item>
		<item>
		<title>Hello world!</title>
		<link>http://revathyrails.wordpress.com/2007/08/19/hello-world/</link>
		<comments>http://revathyrails.wordpress.com/2007/08/19/hello-world/#comments</comments>
		<pubDate>Sun, 19 Aug 2007 06:02:16 +0000</pubDate>
		<dc:creator>revathyrails</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Welcome to WordPress.com. This is your first post. Edit or delete it and start blogging!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=1&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Welcome to <a href="http://wordpress.com/">WordPress.com</a>. This is your first post. Edit or delete it and start blogging!</p>
<br /><img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/revathyrails.wordpress.com/1/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/revathyrails.wordpress.com/1/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/revathyrails.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/revathyrails.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/revathyrails.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/revathyrails.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/revathyrails.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/revathyrails.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/revathyrails.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/revathyrails.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/revathyrails.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/revathyrails.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/revathyrails.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/revathyrails.wordpress.com/1/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/revathyrails.wordpress.com/1/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/revathyrails.wordpress.com/1/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=revathyrails.wordpress.com&amp;blog=1546631&amp;post=1&amp;subd=revathyrails&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://revathyrails.wordpress.com/2007/08/19/hello-world/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/f0e424b105e7c250e9d25ae5c79c7c16?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">revathyrails</media:title>
		</media:content>
	</item>
	</channel>
</rss>
