<?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>Amir M. Sahib &#187; Code</title>
	<atom:link href="http://www.amirsahib.com/category/code/feed" rel="self" type="application/rss+xml" />
	<link>http://www.amirsahib.com</link>
	<description>echo life;</description>
	<lastBuildDate>Wed, 21 Jul 2010 05:08:32 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How to add a class to the form_for tag in Ruby on Rails</title>
		<link>http://www.amirsahib.com/how-to-add-class-to-the-form_for-tag-in-ruby-on-rails</link>
		<comments>http://www.amirsahib.com/how-to-add-class-to-the-form_for-tag-in-ruby-on-rails#comments</comments>
		<pubDate>Tue, 13 Oct 2009 03:40:49 +0000</pubDate>
		<dc:creator>Amir Sahib</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[class]]></category>
		<category><![CDATA[form tag]]></category>
		<category><![CDATA[form_for]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.amirsahib.com/?p=461</guid>
		<description><![CDATA[I&#8217;ve searched for a while and couldn&#8217;t figure this out until I actually picked up my book and browsed the source of examples. I&#8217;ll get straight to the code: &#60;% form_for :user, :url =&#62; users_path,:html =&#62; { :class =&#62; ’standard-form’ } do &#124;f&#124; -%&#62; That produces: &#60;form class="standard-form" method="post" action="/users"&#62; As you can see I [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve searched for a while and couldn&#8217;t figure this out until I actually picked up my book and browsed the source of examples.  I&#8217;ll get straight to the code:</p>
<p><code>&lt;% form_for :user, :url =&gt; users_path,:html =&gt; { :class =&gt; ’standard-form’ } do |f| -%&gt;</code></p>
<p>That produces:</p>
<p><code>&lt;form class="standard-form" method="post" action="/users"&gt;</code></p>
<p>As you can see I added a class called &#8220;standard-form&#8221; to the form tag.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.amirsahib.com/how-to-add-class-to-the-form_for-tag-in-ruby-on-rails/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to embed high-quality YouTube videos to your site</title>
		<link>http://www.amirsahib.com/how-to-embed-high-quality-youtube-videos-to-your-site</link>
		<comments>http://www.amirsahib.com/how-to-embed-high-quality-youtube-videos-to-your-site#comments</comments>
		<pubDate>Fri, 07 Nov 2008 03:38:56 +0000</pubDate>
		<dc:creator>Amir Sahib</dc:creator>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[embed]]></category>
		<category><![CDATA[high-quality]]></category>
		<category><![CDATA[Video]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://www.amirsahib.com/?p=111</guid>
		<description><![CDATA[It&#8217;s very simple. Just add the code below to the end of the value and embed src part of the embed code. &#38;amp;ap=%2526fmt%3D18 Where exactly are the &#8216;value&#8217; and &#8216;embed src&#8217; tags? Look for these items in the code: &#8230;&#8230;&#8230;&#8230;..value=&#8221;http://www.youtube.com/v/wmaTyD7NnCI&#38;hl=en&#38;fs=1&#38;ap=%2526fmt%3D18&#8220;&#8230;&#8230;&#8230;.embed src=&#8221;http://www.youtube.com/v/wmaTyD7NnCI&#38;hl=en&#38;fs=1&#38;ap=%2526fmt%3D18&#8221; &#8230;&#8230;&#8230; Try it out!]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s very simple.  Just add the code below to the end of the value and embed src part of the embed code.</p>
<blockquote><p><code>&amp;amp;ap=%2526fmt%3D18</code></p></blockquote>
<p>Where exactly are the &#8216;value&#8217; and &#8216;embed src&#8217; tags?  Look for these items in the code:</p>
<blockquote><p>&#8230;&#8230;&#8230;&#8230;..value=&#8221;http://www.youtube.com/v/wmaTyD7NnCI&amp;hl=en&amp;fs=1<strong>&amp;ap=%2526fmt%3D18</strong>&#8220;&#8230;&#8230;&#8230;.embed src=&#8221;http://www.youtube.com/v/wmaTyD7NnCI&amp;hl=en&amp;fs=1<strong>&amp;ap=%2526fmt%3D18</strong>&#8221; &#8230;&#8230;&#8230;</p></blockquote>
<p>Try it out!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.amirsahib.com/how-to-embed-high-quality-youtube-videos-to-your-site/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
