<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ruby and Rails</title>
	<atom:link href="http://ruby.zigzo.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://ruby.zigzo.com</link>
	<description>Just another Zigzo.com weblog</description>
	<lastBuildDate>Sat, 03 Apr 2010 20:47:29 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Woes of The Jeweler Gem &amp; .gitconfig</title>
		<link>http://ruby.zigzo.com/2010/04/03/woes-of-the-jeweler-gem-gitconfig/</link>
		<comments>http://ruby.zigzo.com/2010/04/03/woes-of-the-jeweler-gem-gitconfig/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 20:38:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=56</guid>
		<description><![CDATA[I wanted to play around with creating my own gems so today I decided to try the jeweler gem.  
Install went fine:

io@love:~$ sudo gem install jeweler
Successfully installed jeweler-1.4.0
1 gem installed
Installing ri documentation for jeweler-1.4.0...
Installing RDoc documentation for jeweler-1.4.0...

But when i attempted to create &#8220;the perfect gem&#8221; I ran into a bit of a problem:

io@love:~/ruby/gem_test$ [...]]]></description>
			<content:encoded><![CDATA[<p>I wanted to play around with creating my own gems so today I decided to try the jeweler gem.  </p>
<p>Install went fine:</p>
<pre>
io@love:~$ sudo gem install jeweler
Successfully installed jeweler-1.4.0
1 gem installed
Installing ri documentation for jeweler-1.4.0...
Installing RDoc documentation for jeweler-1.4.0...
</pre>
<p>But when i attempted to create &#8220;the perfect gem&#8221; I ran into a bit of a problem:</p>
<pre>
io@love:~/ruby/gem_test$ jeweler the-perfect-gem
/usr/lib/ruby/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:700:in `command': git config "--global" "--list"  2&gt;&amp;1:fatal: unable to read config file /home/io/.gitconfig: No such file or directory (Git::GitExecuteError)
	from /usr/lib/ruby/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:672:in `command_lines'
	from /usr/lib/ruby/gems/1.8/gems/git-1.2.5/lib/git/lib.rb:352:in `global_config_list'
	from /usr/lib/ruby/gems/1.8/gems/git-1.2.5/lib/git.rb:148:in `global_config'
	from /usr/lib/ruby/gems/1.8/gems/jeweler-1.4.0/bin/../lib/jeweler/generator/options.rb:15:in `initialize'
	from /usr/lib/ruby/gems/1.8/gems/jeweler-1.4.0/bin/../lib/jeweler/generator/application.rb:9:in `new'
	from /usr/lib/ruby/gems/1.8/gems/jeweler-1.4.0/bin/../lib/jeweler/generator/application.rb:9:in `run!'
	from /usr/lib/ruby/gems/1.8/gems/jeweler-1.4.0/bin/jeweler:5
	from /usr/bin/jeweler:19:in `load'
	from /usr/bin/jeweler:19
</pre>
<p>And after some research&#8230; looks like i had not done some mandatory git setup steps&#8230; as i SHOULD have.</p>
<p><strong>The solution&#8230;</strong></p>
<pre>
io@love:~/ruby/gem_test$ git config --global user.name "iouser"
io@love:~/ruby/gem_test$ git config --global user.email "iouser@gmail.com"
io@love:~/ruby/gem_test$ git config --global github.user iouser
</pre>
<p>And finally <strong>the glory</strong>:</p>
<pre>
io@love:~/ruby/gem_test$ jeweler the-perfect-gem
	create	.gitignore
	create	Rakefile
	create	LICENSE
	create	README.rdoc
	create	.document
	create	lib
	create	lib/the-perfect-gem.rb
	create	test
	create	test/helper.rb
	create	test/test_the-perfect-gem.rb
Jeweler has prepared your gem in the-perfect-gem
</pre>
<p>Note:  If you see the this error</p>
<pre>
io@love:~/ruby/gem_test$ jeweler the-perfect-gem
No github.user found in ~/.gitconfig. Please tell git about your GitHub account (see http://github.com/blog/180-local-github-config for details). For example: git config --global github.user defunkt
</pre>
<p>it means you forgot to do this part:</p>
<pre>
io@love:~/ruby/gem_test$ git config --global github.user iouser
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2010/04/03/woes-of-the-jeweler-gem-gitconfig/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finding, and Ordering Through an Association</title>
		<link>http://ruby.zigzo.com/2009/07/20/finding-ordering-through-association/</link>
		<comments>http://ruby.zigzo.com/2009/07/20/finding-ordering-through-association/#comments</comments>
		<pubDate>Mon, 20 Jul 2009 04:59:51 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=50</guid>
		<description><![CDATA[I ran into an issue today.  I have a Blog model that has_many feed_entries.
In plain english, I needed a list of blogs ordered by most recently updated feed.
My models look like this:
blog.rb
has_many :feed_entries

feed_entry.rb
belongs_to :blog
The query that makes it possible:
Blog.find(:all, :include =&#62; :feed_entries, :order =&#62; 'feed_entries.published_at DESC')
:include makes this possible!
]]></description>
			<content:encoded><![CDATA[<p>I ran into an issue today.  I have a Blog model that has_many feed_entries.</p>
<p>In plain english, I needed a list of blogs ordered by most recently updated feed.</p>
<p>My models look like this:</p>
<pre lang="RUBY" line="1">blog.rb
has_many :feed_entries

feed_entry.rb
belongs_to :blog</pre>
<p>The query that makes it possible:</p>
<pre lang="RUBY" line="1">Blog.find(:all, :include =&gt; :feed_entries, :order =&gt; 'feed_entries.published_at DESC')</pre>
<p>:include makes this possible!</p>
]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/07/20/finding-ordering-through-association/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google Maps in Radiant Using</title>
		<link>http://ruby.zigzo.com/2009/04/20/google-maps-in-radiant-using/</link>
		<comments>http://ruby.zigzo.com/2009/04/20/google-maps-in-radiant-using/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 22:28:56 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Radiant CMS]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=44</guid>
		<description><![CDATA[This is how i got Google Maps working in Radiant CMS via the google_maps extension.
This one is pretty easy, but you should know that you HAVE to be using MySQL or PostgreSQL because google_maps uses the spatial adapter plugin which needs one of those 2.
First install the GeoRuby gem.  Careful this is case sensitive:
sudo gem [...]]]></description>
			<content:encoded><![CDATA[<p>This is how i got Google Maps working in Radiant CMS via the <a title="gmaps on github" href="http://github.com/rurounijones/radiant-google-maps-extension/tree" target="_blank">google_maps extension</a>.</p>
<p>This one is pretty easy, but you should know that you HAVE to be using MySQL or PostgreSQL because google_maps uses the spatial adapter plugin which needs one of those 2.</p>
<p>First install the GeoRuby gem.  Careful this is case sensitive:<br />
sudo gem install GeoRuby</p>
<p>Next, from within your Radiant project&#8217;s root folder, clone the extension from github:<br />
git clone git://github.com/rurounijones/radiant-google-maps-extension.git vendor/extensions/google_maps</p>
<p>Time to run the Rake tasks:<br />
rake radiant:extensions:google_maps:api<br />
rake production radiant:extensions:google_maps:migrate<br />
rake production radiant:extensions:google_maps:update</p>
<p>Edit config/gmaps_api_key.yml and add your own <a title="gmaps key" href="http://code.google.com/apis/maps/signup.html" target="_blank">Google Maps API key</a>.</p>
<p>Add this R tag inside your layout&#8217;s head tag:<br />
&lt;r:google_map:header /&gt;</p>
<p>Goto the Maps tab in the Radiant Admin and create a map</p>
<p>Create a new page and name it something.  In the body of that page add:<br />
&lt;r:google_map:generate div=&#8221;my_gmap_div_name&#8221; id=&#8221;1&#8243; /&gt;<br />
&lt;div id=&#8221;my_gmap_div_name&#8221; style=&#8221;height: 600px; width: 868px;&#8221;&gt;&lt;/div&gt;</p>
<p>That provides a div for the map to go in, and calls the google_map generate tag with Map id 1.  Look on the github page for more stuff.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/04/20/google-maps-in-radiant-using/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Rmagick Gem on Ubuntu</title>
		<link>http://ruby.zigzo.com/2009/04/20/install-rmagick-gem-on-ubuntu/</link>
		<comments>http://ruby.zigzo.com/2009/04/20/install-rmagick-gem-on-ubuntu/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 16:39:25 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Gem]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=41</guid>
		<description><![CDATA[A super easy, no fat, no carbs, anti-oxidant filled three lines that had Rmagick working immediately for me:

sudo apt-get install imagemagick
sudo apt-get install libmagick9-dev
sudo gem install rmagick

]]></description>
			<content:encoded><![CDATA[<p>A super easy, no fat, no carbs, anti-oxidant filled three lines that had Rmagick working immediately for me:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> imagemagick
<span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> libmagick9-dev
<span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> rmagick</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/04/20/install-rmagick-gem-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install the &#8216;first-reorder&#8217; Extension for Radiant CMS</title>
		<link>http://ruby.zigzo.com/2009/04/20/how-to-install-the-first-reorder-extension-for-radiant-cms/</link>
		<comments>http://ruby.zigzo.com/2009/04/20/how-to-install-the-first-reorder-extension-for-radiant-cms/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 07:36:02 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Radiant CMS]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=38</guid>
		<description><![CDATA[Easy as pie.
First, make sure ray is installed&#8230; if it&#8217;s not, just run
./script/extension install ray
Second, install the extension!
rake ray:extension:install name=first-reorder
This reorder extension is pretty nice.  It provides an ajaxish layout for drag/drop reordering.
]]></description>
			<content:encoded><![CDATA[<p>Easy as pie.</p>
<p>First, make sure ray is installed&#8230; if it&#8217;s not, just run<br />
./script/extension install ray</p>
<p>Second, install the extension!<br />
rake ray:extension:install name=first-reorder</p>
<p>This reorder extension is pretty nice.  It provides an ajaxish layout for drag/drop reordering.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/04/20/how-to-install-the-first-reorder-extension-for-radiant-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Install the News Extension for Radiant CMS</title>
		<link>http://ruby.zigzo.com/2009/04/20/how-to-install-the-news-extension-for-radiant-cms/</link>
		<comments>http://ruby.zigzo.com/2009/04/20/how-to-install-the-news-extension-for-radiant-cms/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 06:12:30 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Radiant CMS]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=32</guid>
		<description><![CDATA[The News extension for Radiant gives you the ability to post &#8220;News&#8221; items.  The new items are cool for mini updates on things, OR for really posting News :)
I am going to go through installing the News extension on Radiant 0.7.1.
Based on the install info for News it says you need to install calendar_date_select and [...]]]></description>
			<content:encoded><![CDATA[<p>The<a title="weee baby yeah!" href="http://github.com/screenconcept/radiant-news-extension/tree/master" target="_blank"> News extension for Radiant</a> gives you the ability to post &#8220;News&#8221; items.  The new items are cool for mini updates on things, OR for really posting News :)</p>
<p>I am going to go through installing the News extension on Radiant 0.7.1.</p>
<p><span id="more-32"></span>Based on the install info for News it says you need to install <a title="calendar shiz" href="http://code.google.com/p/calendardateselect/" target="_blank">calendar_date_select and points you at their page</a>.  Their google code page says you can simply do:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> calendar_date_select</pre></div></div>

<p>Yeah, so,  for some reason that doesn&#8217;t work. Skip that step and do the rest, we will address it later.</p>
<p>1)  Clone from github!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git clone git:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>github.com<span style="color: #000000; font-weight: bold;color: #000000;">/</span>screenconcept<span style="color: #000000; font-weight: bold;color: #000000;">/</span>radiant-news-extension.git vendor<span style="color: #000000; font-weight: bold;color: #000000;">/</span>extensions<span style="color: #000000; font-weight: bold;color: #000000;">/</span>news</pre></div></div>

<p>2) Run the Migration and Update tasks</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake production radiant:extensions:news:migrate
rake radiant:extensions:news:update</pre></div></div>

<p>Know that you can swap out &#8220;production&#8221; or add in whatever environment you want.</p>
<p>3) Finally we install the calendar_date_select <strong>PLUGIN</strong> not the gem! I could not get this thing working with the gem.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">git clone git:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>github.com<span style="color: #000000; font-weight: bold;color: #000000;">/</span>timcharper<span style="color: #000000; font-weight: bold;color: #000000;">/</span>calendar_date_select.git vendor<span style="color: #000000; font-weight: bold;color: #000000;">/</span>plugins<span style="color: #000000; font-weight: bold;color: #000000;">/</span>calendar_date_select <span style="color: #000000; font-weight: bold;color: #000000;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">rm</span> <span style="color: #660033;">-rf</span> vendor<span style="color: #000000; font-weight: bold;color: #000000;">/</span>plugins<span style="color: #000000; font-weight: bold;color: #000000;">/</span>calendar_date_select<span style="color: #000000; font-weight: bold;color: #000000;">/</span>.git</pre></div></div>

<p>4) Weeeeee :)</p>
]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/04/20/how-to-install-the-news-extension-for-radiant-cms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create a &#8216;Contact Us&#8217; Page in Radiant 0.7.1</title>
		<link>http://ruby.zigzo.com/2009/04/19/how-to-create-a-contact-us-page-in-radiant-071/</link>
		<comments>http://ruby.zigzo.com/2009/04/19/how-to-create-a-contact-us-page-in-radiant-071/#comments</comments>
		<pubDate>Mon, 20 Apr 2009 02:49:14 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Radiant CMS]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=23</guid>
		<description><![CDATA[This post is more of a personal note to myself.  99% is copy/paste from either the Radiant wiki, or the Mailer extension&#8217;s github page.  I&#8217;m notating this because both the Radiant wiki and Mailer&#8217;s github page have instructions that confused the hell out of me so I&#8217;m consolidating it here after getting it [...]]]></description>
			<content:encoded><![CDATA[<p><em>This post is more of a personal note to myself.  99% is copy/paste from either the <a title="github page for radiant" href="http://wiki.github.com/radiant/radiant/mailer-extension">Radiant wiki</a>, or the <a href="http://github.com/radiant/radiant-mailer-extension/tree/master">Mailer extension&#8217;s github page</a>.  I&#8217;m notating this because both the Radiant wiki and Mailer&#8217;s github page have instructions that confused the hell out of me so I&#8217;m consolidating it here after getting it working.</em></p>
<p>This tutorial assumes you have a freshly bootstrapped Radiant installation.  Let&#8217;s Go!<span id="more-23"></span></p>
<p>1) I like the <strong>Ray extension</strong> for installing stuff so first we install Ray:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">me<span style="color: #000000; font-weight: bold;color: #000000;">@</span>coffee-bean:~<span style="color: #000000; font-weight: bold;color: #000000;">/</span>railz<span style="color: #000000; font-weight: bold;color: #000000;">/</span>radiant$ .<span style="color: #000000; font-weight: bold;color: #000000;">/</span>script<span style="color: #000000; font-weight: bold;color: #000000;">/</span>extension <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> ray</pre></div></div>

<p>2) After Ray installs, we can easily use it to install the Mailer extension:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rake ray:extension:<span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> <span style="color: #007800;">name</span>=mailer</pre></div></div>

<p>3) After the Mailer extension is installed, we have to modify &#8216;config/environment.rb&#8217; so that it is no longer excluding the ActionMailer framework.  Find the line &#8216;config.frameworks -= [ :action_mailer ]&#8216; and change it to just &#8216;config.frameworks -= []&#8216;.</p>
<p>While <span>environment</span>.rb is open, we need to make one additional change.  We need to add our SMTP settings.</p>
<p>Find the line ResponseCache.defaults[:logger] = ActionController::Base.logger.  If you have not modified enviornment.rb before this time, then it should be Line 84.  Below that line but before the next &#8216;end&#8217; add the following:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#6666ff; font-weight:bold;">ActionMailer::Base</span>.<span style="color:#9900CC;">smtp_settings</span> = <span style="color:#006600; font-weight:bold;color: #000000;">&#123;</span>
<span style="color:#ff3333; font-weight:bold;">:address</span> <span style="color:#006600; font-weight:bold;color: #000000;">=&gt;</span> <span style="color:#996600;color: #808080;">&quot;smtp.domain.com&quot;</span>,
<span style="color:#ff3333; font-weight:bold;">:domain</span> <span style="color:#006600; font-weight:bold;color: #000000;">=&gt;</span> <span style="color:#996600;color: #808080;">&quot;domain.com&quot;</span>,
<span style="color:#ff3333; font-weight:bold;">:user_name</span> <span style="color:#006600; font-weight:bold;color: #000000;">=&gt;</span> <span style="color:#996600;color: #808080;">&quot;user@domain.com&quot;</span>,
<span style="color:#ff3333; font-weight:bold;">:password</span> <span style="color:#006600; font-weight:bold;color: #000000;">=&gt;</span> <span style="color:#996600;color: #808080;">&quot;password&quot;</span>,
<span style="color:#ff3333; font-weight:bold;">:authentication</span> <span style="color:#006600; font-weight:bold;color: #000000;">=&gt;</span> <span style="color:#ff3333; font-weight:bold;">:login</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&#125;</span></pre></div></div>

<p>4) Create a child off of your Home Page in the Radiant Admin and called it &#8220;Contact Us&#8221;</p>
<p>5) Open the &#8220;Contact Us&#8221; page and create 2 parts.  Name the first part &#8216;mailer&#8217;.  Name the second part &#8216;email&#8217;.<br />
The &#8216;mailer&#8217; part holds our mail config stuff.<br />
The &#8216;email&#8217; part is the template for the email that is sent out.  This can be named &#8216;email_html&#8217; if you feel like adding html to the body of your email.  &#8216;email_html&#8217; also supports Textile and Markdown.<br />
The &#8216;body&#8217; part (body is there by default in any page) is where the actual mailer form will go.</p>
<p>6) Put this in the &#8216;email&#8217; part:</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">Name From: <span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>r:mailer:get name=<span style="color:#996600;color: #808080;">&quot;name&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">/&gt;</span>
Email From: <span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>r:mailer:get name=<span style="color:#996600;color: #808080;">&quot;email&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">/&gt;</span>
Body Message:
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>r:mailer:get name=<span style="color:#996600;color: #808080;">&quot;message&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">/&gt;</span></pre></div></div>

<p>7) Put this in the &#8216;mailer&#8217; part, but <strong>NOTE this is YAML so indentation matters</strong> (2 spaces):</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;">subject: <span style="color:#996600;color: #808080;">&quot;Sent from your contact us form&quot;</span>
<span style="color:#5A0A0A; font-weight:bold;">redirect_to</span>: <span style="color:#006600; font-weight:bold;color: #000000;">/</span>contact<span style="color:#006600; font-weight:bold;color: #000000;">/</span>thanks<span style="color:#006600; font-weight:bold;color: #000000;">-</span>for<span style="color:#006600; font-weight:bold;color: #000000;">-</span>contacting<span style="color:#006600; font-weight:bold;color: #000000;">-</span>us
from_field: email
recipients:
  <span style="color:#006600; font-weight:bold;color: #000000;">-</span> you@example.<span style="color:#9900CC;">com</span></pre></div></div>

<p>Side note 2, the redirect_to is where the user is sent After submitting the form. Obviously, if you set this to some page, you will need to create that page.</p>
<p>8) Put this in the &#8216;body&#8217; part (or whatever part you want the actual form to live in):</p>

<div class="wp_syntax"><div class="code"><pre class="rails" style="font-family:monospace;"><span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>r:mailer:<span style="color:#5A0A0A; font-weight:bold;">form</span> name=<span style="color:#996600;color: #808080;">&quot;contact&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>fieldset<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>legend<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>Enter your contact information <span style="color:#9966CC; font-weight:bold;color: #0000FF;">and</span> message.<span style="color:#006600; font-weight:bold;color: #000000;">&lt;/</span>legend<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>r:text name=<span style="color:#996600;color: #808080;">&quot;name&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">/&gt;</span> <span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>label <span style="color:#9966CC; font-weight:bold;color: #0000FF;">for</span>=<span style="color:#996600;color: #808080;">&quot;name&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>Name<span style="color:#006600; font-weight:bold;color: #000000;">&lt;/</span>label<span style="color:#006600; font-weight:bold;color: #000000;">&gt;&lt;</span>br<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>r:text name=<span style="color:#996600;color: #808080;">&quot;email&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">/&gt;</span> <span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>label <span style="color:#9966CC; font-weight:bold;color: #0000FF;">for</span>=<span style="color:#996600;color: #808080;">&quot;email&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>Email<span style="color:#006600; font-weight:bold;color: #000000;">&lt;/</span>label<span style="color:#006600; font-weight:bold;color: #000000;">&gt;&lt;</span>br<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>label <span style="color:#9966CC; font-weight:bold;color: #0000FF;">for</span>=<span style="color:#996600;color: #808080;">&quot;message&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>Message<span style="color:#006600; font-weight:bold;color: #000000;">&lt;/</span>label<span style="color:#006600; font-weight:bold;color: #000000;">&gt;&lt;</span>br<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>r:textarea name=<span style="color:#996600;color: #808080;">&quot;message&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">/&gt;&lt;</span>br<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;</span>input type=<span style="color:#996600;color: #808080;">&quot;submit&quot;</span> value=<span style="color:#996600;color: #808080;">&quot;Send&quot;</span><span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;/</span>fieldset<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span>
<span style="color:#006600; font-weight:bold;color: #000000;">&lt;/</span>r:mailer:form<span style="color:#006600; font-weight:bold;color: #000000;">&gt;</span></pre></div></div>

<p>9) Profit!  Try it out.</p>
]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/04/19/how-to-create-a-contact-us-page-in-radiant-071/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to Install the WYMeditor Extension for Radiant CMS in 3 Steps</title>
		<link>http://ruby.zigzo.com/2009/04/19/how-to-install-the-wymeditor-extension-for-radiant-cms-in-3-steps/</link>
		<comments>http://ruby.zigzo.com/2009/04/19/how-to-install-the-wymeditor-extension-for-radiant-cms-in-3-steps/#comments</comments>
		<pubDate>Sun, 19 Apr 2009 04:52:36 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Radiant CMS]]></category>
		<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=18</guid>
		<description><![CDATA[WYMeditor is a really cool wysiwyg-ish editor &#8212; well technically it&#8217;s a WYSIWYM  (What You See Is What You Mean).
It just so happens that a gentleman named Benny Degezelle has created an extension for Radiant CMS.
At the time of this writing I&#8217;ve installed this bad boy on Radiant CMS 0.7.1.
FIRST
Assuming that you have an already [...]]]></description>
			<content:encoded><![CDATA[<p>WYMeditor is a really cool wysiwyg-ish editor &#8212; well technically it&#8217;s a WYSIWYM  (What You See Is What You Mean).</p>
<p>It just so happens that a gentleman named Benny Degezelle has created an extension for Radiant CMS.</p>
<p>At the time of this writing I&#8217;ve installed this bad boy on Radiant CMS 0.7.1.</p>
<p><strong>FIRST</strong></p>
<p>Assuming that you have an already bootstrapped (aka &#8216;rake production db:bootstrap&#8217;) installation of Radiant CMS you should first clone the extension from GitHub while in your application&#8217;s home directory:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">me<span style="color: #000000; font-weight: bold;color: #000000;">@</span>world:<span style="color: #000000; font-weight: bold;color: #000000;">/</span>www<span style="color: #000000; font-weight: bold;color: #000000;">/</span>radiant.domain.net$ git clone git:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>github.com<span style="color: #000000; font-weight: bold;color: #000000;">/</span>jomz<span style="color: #000000; font-weight: bold;color: #000000;">/</span>radiant-wym-editor-filter-extension.git vendor<span style="color: #000000; font-weight: bold;color: #000000;">/</span>extensions<span style="color: #000000; font-weight: bold;color: #000000;">/</span>wym_editor_filter</pre></div></div>

<p>The command above will clone it to /vendor/extensions/wym_editor_filter</p>
<p><strong>SECOND</strong></p>
<p>Run the Install rake task!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">me<span style="color: #000000; font-weight: bold;color: #000000;">@</span>world:<span style="color: #000000; font-weight: bold;color: #000000;">/</span>www<span style="color: #000000; font-weight: bold;color: #000000;">/</span>radiant.domain.net$ rake radiant:extensions:wym_editor_filter:<span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span></pre></div></div>

<p><strong>THIRD</strong></p>
<p>Run the Update rake task just to be safe.  You can run this at a later point in time to update, obviously.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">me<span style="color: #000000; font-weight: bold;color: #000000;">@</span>world-www:<span style="color: #000000; font-weight: bold;color: #000000;">/</span>www<span style="color: #000000; font-weight: bold;color: #000000;">/</span>radiant.domain.net$ rake radiant:extensions:wym_editor_filter:update</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/04/19/how-to-install-the-wymeditor-extension-for-radiant-cms-in-3-steps/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Feedzirra and How I Installed It</title>
		<link>http://ruby.zigzo.com/2009/02/15/feedzirra-installation-errors/</link>
		<comments>http://ruby.zigzo.com/2009/02/15/feedzirra-installation-errors/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 18:58:18 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Gem]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[curl]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[feedzirra]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=12</guid>
		<description><![CDATA[I&#8217;m an Ubuntu user and wanted to give the Feedzirra gem a shot and play with some RSS feeds today but unfortunately I ran into a few problems &#8212; which were CAKE to fix thanks to apt-get and hopefully this post will save you some time!
So, according to paul dix, to get this baby installed [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m an Ubuntu user and wanted to give the <a title="pizzaul my nizzaul" href="http://github.com/pauldix/feedzirra/tree/master" target="_blank">Feedzirra gem</a> a shot and play with some RSS feeds today but unfortunately I ran into a few problems &#8212; which were CAKE to fix thanks to apt-get and hopefully this post will save you some time!<span id="more-12"></span></p>
<p>So, according to <a title="pauly paul paul" href="http://github.com/pauldix/feedzirra/tree/master" target="_blank">paul dix</a>, to get this baby installed you need to run:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">io<span style="color: #000000; font-weight: bold;color: #000000;">@</span>crazo:~$ <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> pauldix-feedzirra</pre></div></div>

<p>If that works, please carry on with life and have some funs with RSS.  If you get the following error the fix MIGHT be as simple as installing libcurl3-dev:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">io<span style="color: #000000; font-weight: bold;color: #000000;">@</span>crazo:~$ <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> pauldix-feedzirra
Building native extensions.  This could take a while...
ERROR:  Error installing pauldix-feedzirra:
	ERROR: Failed to build gem native extension.
&nbsp;
<span style="color: #000000; font-weight: bold;color: #000000;">/</span>usr<span style="color: #000000; font-weight: bold;color: #000000;">/</span>bin<span style="color: #000000; font-weight: bold;color: #000000;">/</span>ruby1.8 extconf.rb <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> pauldix-feedzirra
checking <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> curl-config... no
checking <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> main<span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span><span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> <span style="color: #000000; font-weight: bold;color: #0000FF;">in</span> -lcurl... no
<span style="color: #000000; font-weight: bold;color: #000000;">***</span> extconf.rb failed <span style="color: #000000; font-weight: bold;color: #000000;">***</span>
Could not create Makefile due to some reason, probably lack of
necessary libraries and<span style="color: #000000; font-weight: bold;color: #000000;">/</span>or headers.  Check the mkmf.log <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">file</span> <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">more</span>
details.  You may need configuration options.
&nbsp;
Provided configuration options:
	<span style="color: #660033;">--with-opt-dir</span>
	<span style="color: #660033;">--without-opt-dir</span>
	<span style="color: #660033;">--with-opt-include</span>
	<span style="color: #660033;">--without-opt-include</span>=<span style="color: #800000;color: #008000;">${opt-dir}</span><span style="color: #000000; font-weight: bold;color: #000000;">/</span>include
	<span style="color: #660033;">--with-opt-lib</span>
	<span style="color: #660033;">--without-opt-lib</span>=<span style="color: #800000;color: #008000;">${opt-dir}</span><span style="color: #000000; font-weight: bold;color: #000000;">/</span>lib
	<span style="color: #660033;">--with-make-prog</span>
	<span style="color: #660033;">--without-make-prog</span>
	<span style="color: #660033;">--srcdir</span>=.
	<span style="color: #660033;">--curdir</span>
	<span style="color: #660033;">--ruby</span>=<span style="color: #000000; font-weight: bold;color: #000000;">/</span>usr<span style="color: #000000; font-weight: bold;color: #000000;">/</span>bin<span style="color: #000000; font-weight: bold;color: #000000;">/</span>ruby1.8
	<span style="color: #660033;">--with-curl-dir</span>
	<span style="color: #660033;">--without-curl-dir</span>
	<span style="color: #660033;">--with-curl-include</span>
	<span style="color: #660033;">--without-curl-include</span>=<span style="color: #800000;color: #008000;">${curl-dir}</span><span style="color: #000000; font-weight: bold;color: #000000;">/</span>include
	<span style="color: #660033;">--with-curl-lib</span>
	<span style="color: #660033;">--without-curl-lib</span>=<span style="color: #800000;color: #008000;">${curl-dir}</span><span style="color: #000000; font-weight: bold;color: #000000;">/</span>lib
	<span style="color: #660033;">--with-curllib</span>
	<span style="color: #660033;">--without-curllib</span>
extconf.rb:<span style="color: #000000;color: #808080;">9</span>:   Can<span style="color: #ff0000;">'t find libcurl or curl/curl.h (RuntimeError)
&nbsp;
  Try passing --with-curl-dir or --with-curl-lib and --with-curl-include
  options to extconf.
&nbsp;
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/taf2-curb-0.2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/taf2-curb-0.2.7/ext/gem_make.out</span></pre></div></div>

<p>After reading that butt load of output i noticed this line:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">extconf.rb:<span style="color: #000000;color: #808080;">9</span>:   Can<span style="color: #ff0000;">'t find libcurl or curl/curl.h (RuntimeError)</span></pre></div></div>

<p>Two flags here:  1.  the bitching about curl makes me think i don&#8217;t have curl installed and 2. curl.h = header and normally the header stuff is in the dev package so I should try that out.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">io<span style="color: #000000; font-weight: bold;color: #000000;">@</span>crazo:~$ <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> libcurl3-dev</pre></div></div>

<p>Lots of other stuff was installed with this:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Reading package lists... Done
Building dependency <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">tree</span>
Reading state information... Done
Note, selecting libcurl4-openssl-dev instead of libcurl3-dev
The following packages were automatically installed and are no longer required:
  mplayer-skins <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">mplayer</span> libglide2 libggi2 libgii1 libgii1-target-x
Use <span style="color: #ff0000;">'apt-get autoremove'</span> to remove them.
The following extra packages will be installed:
  comerr-dev libcurl4-openssl-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev libssl-dev
Suggested packages:
  libcurl3-dbg krb5-doc
The following NEW packages will be installed:
  comerr-dev libcurl4-openssl-dev libidn11-dev libkadm55 libkrb5-dev libldap2-dev libssl-dev
<span style="color: #000000;color: #808080;">0</span> upgraded, <span style="color: #000000;color: #808080;">7</span> newly installed, <span style="color: #000000;color: #808080;">0</span> to remove and <span style="color: #000000;color: #808080;">0</span> not upgraded.
Need to get 4568kB of archives.
After this operation, 12.8MB of additional disk space will be used.
Do you want to <span style="color: #7a0874; font-weight: bold;color: #0000FF;">continue</span> <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>Y<span style="color: #000000; font-weight: bold;color: #000000;">/</span>n<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>? Y
Get:<span style="color: #000000;color: #808080;">1</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>us.archive.ubuntu.com intrepid-updates<span style="color: #000000; font-weight: bold;color: #000000;">/</span>main libssl-dev 0.9.8g-10.1ubuntu2.1 <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>1981kB<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>
Get:<span style="color: #000000;color: #808080;">2</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>us.archive.ubuntu.com intrepid<span style="color: #000000; font-weight: bold;color: #000000;">/</span>main libidn11-dev <span style="color: #000000;color: #808080;">1.8</span>+<span style="color: #000000;color: #808080;">20080606</span>-<span style="color: #000000;color: #808080;">1</span> <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>574kB<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>
Get:<span style="color: #000000;color: #808080;">3</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>us.archive.ubuntu.com intrepid<span style="color: #000000; font-weight: bold;color: #000000;">/</span>main libkadm55 1.6.dfsg.4~beta1-<span style="color: #000000;color: #808080;">3</span> <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>151kB<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>
Get:<span style="color: #000000;color: #808080;">4</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>us.archive.ubuntu.com intrepid<span style="color: #000000; font-weight: bold;color: #000000;">/</span>main comerr-dev <span style="color: #000000;color: #808080;">2.1</span>-1.41.3-1ubuntu1 <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>41.6kB<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>
Get:<span style="color: #000000;color: #808080;">5</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>us.archive.ubuntu.com intrepid<span style="color: #000000; font-weight: bold;color: #000000;">/</span>main libkrb5-dev 1.6.dfsg.4~beta1-<span style="color: #000000;color: #808080;">3</span> <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>92.1kB<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>
Get:<span style="color: #000000;color: #808080;">6</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>us.archive.ubuntu.com intrepid-updates<span style="color: #000000; font-weight: bold;color: #000000;">/</span>main libldap2-dev 2.4.11-0ubuntu6.1 <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>824kB<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>
Get:<span style="color: #000000;color: #808080;">7</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>us.archive.ubuntu.com intrepid<span style="color: #000000; font-weight: bold;color: #000000;">/</span>main libcurl4-openssl-dev 7.18.2-1ubuntu4 <span style="color: #7a0874; font-weight: bold;color: #000000;">&#91;</span>904kB<span style="color: #7a0874; font-weight: bold;color: #000000;">&#93;</span>
Fetched 4568kB <span style="color: #000000; font-weight: bold;color: #0000FF;">in</span> 24s <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>184kB<span style="color: #000000; font-weight: bold;color: #000000;">/</span>s<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span>
Selecting previously deselected package libssl-dev.
<span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>Reading database ... <span style="color: #000000;color: #808080;">192128</span> files and directories currently installed.<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span>
Unpacking libssl-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;color: #000000;">/</span>libssl-dev_0.9.8g-10.1ubuntu2.1_i386.deb<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Selecting previously deselected package libidn11-dev.
Unpacking libidn11-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;color: #000000;">/</span>libidn11-dev_1.8+<span style="color: #000000;color: #808080;">20080606</span>-<span style="color: #000000;color: #808080;">1</span>_i386.deb<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Selecting previously deselected package libkadm55.
Unpacking libkadm55 <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;color: #000000;">/</span>libkadm55_1.6.dfsg.4~beta1-<span style="color: #000000;color: #808080;">3</span>_i386.deb<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Selecting previously deselected package comerr-dev.
Unpacking comerr-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;color: #000000;">/</span>comerr-dev_2.1-1.41.3-1ubuntu1_i386.deb<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Selecting previously deselected package libkrb5-dev.
Unpacking libkrb5-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;color: #000000;">/</span>libkrb5-dev_1.6.dfsg.4~beta1-<span style="color: #000000;color: #808080;">3</span>_i386.deb<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Selecting previously deselected package libldap2-dev.
Unpacking libldap2-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;color: #000000;">/</span>libldap2-dev_2.4.11-0ubuntu6.1_i386.deb<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Selecting previously deselected package libcurl4-openssl-dev.
Unpacking libcurl4-openssl-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>from ...<span style="color: #000000; font-weight: bold;color: #000000;">/</span>libcurl4-openssl-dev_7.18.2-1ubuntu4_i386.deb<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Processing triggers <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> man-db ...
Processing triggers <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> doc-base ...
Processing <span style="color: #000000;color: #808080;">2</span> added doc-base <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">file</span><span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>s<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span>...
Registering documents with scrollkeeper...
Setting up libssl-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>0.9.8g-10.1ubuntu2.1<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Setting up libidn11-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span><span style="color: #000000;color: #808080;">1.8</span>+<span style="color: #000000;color: #808080;">20080606</span>-<span style="color: #000000;color: #808080;">1</span><span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
&nbsp;
Setting up libkadm55 <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>1.6.dfsg.4~beta1-<span style="color: #000000;color: #808080;">3</span><span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
&nbsp;
Setting up comerr-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span><span style="color: #000000;color: #808080;">2.1</span>-1.41.3-1ubuntu1<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
&nbsp;
Setting up libkrb5-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>1.6.dfsg.4~beta1-<span style="color: #000000;color: #808080;">3</span><span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Setting up libldap2-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>2.4.11-0ubuntu6.1<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
Setting up libcurl4-openssl-dev <span style="color: #7a0874; font-weight: bold;color: #000000;">&#40;</span>7.18.2-1ubuntu4<span style="color: #7a0874; font-weight: bold;color: #000000;">&#41;</span> ...
&nbsp;
Processing triggers <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> libc6 ...
ldconfig deferred processing now taking place
io<span style="color: #000000; font-weight: bold;color: #000000;">@</span>crazo:~$</pre></div></div>

<p>Now let&#8217;s try feedzirra again:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">io<span style="color: #000000; font-weight: bold;color: #000000;">@</span>crazo:~$ <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> pauldix-feedzirra
Building native extensions.  This could take a while...
Successfully installed taf2-curb-0.2.7
Successfully installed pauldix-feedzirra-0.0.1
<span style="color: #000000;color: #808080;">2</span> gems installed
Installing ri documentation <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> taf2-curb-0.2.7...
Installing ri documentation <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> pauldix-feedzirra-0.0.1...
Installing RDoc documentation <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> taf2-curb-0.2.7...
Installing RDoc documentation <span style="color: #000000; font-weight: bold;color: #0000FF;">for</span> pauldix-feedzirra-0.0.1...</pre></div></div>

<p>Bam! It&#8217;s in and installed the correct fork of curb (<a title="taf2 baby" href="http://github.com/taf2/curb/tree/master" target="_blank">taf2-curb</a>).</p>
<p><a title="woop woop pull ova that gem too phat" href="/2009/02/15/install-gems-from-github/" target="_self">Side note:  In order to install gems from GitHub you need to add GitHub as a gem source.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/02/15/feedzirra-installation-errors/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Install Gems from GitHub</title>
		<link>http://ruby.zigzo.com/2009/02/15/install-gems-from-github/</link>
		<comments>http://ruby.zigzo.com/2009/02/15/install-gems-from-github/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 18:56:21 +0000</pubDate>
		<dc:creator>Zigzo Zlinks Admin</dc:creator>
				<category><![CDATA[Gem]]></category>
		<category><![CDATA[gems]]></category>
		<category><![CDATA[github]]></category>

		<guid isPermaLink="false">http://ruby.zigzo.com/?p=13</guid>
		<description><![CDATA[I&#8217;ve seen a few people confused by this, and I was stumped back in the day SO:
FYI, if you want to install gems from GitHub you need to add it as a source!
How?  Easy!

sudo gem sources -a http://gems.github.com

Now you can install any gem hosted on GitHub with something like:

sudo gem install yo-mama

One other thing [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve seen a few people confused by this, and I was stumped back in the day SO:</p>
<p><strong>FYI, if you want to install gems from GitHub you need to add it as a source!</strong></p>
<p>How?  Easy!</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem sources <span style="color: #660033;">-a</span> http:<span style="color: #000000; font-weight: bold;color: #000000;">//</span>gems.github.com</pre></div></div>

<p>Now you can install any gem hosted on GitHub with something like:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> yo-mama</pre></div></div>

<p>One other thing to note.  Gem names when installing from GitHub are formatted as: username-projectname</p>
<p>So if you were looking @ user &#8220;billybob&#8221; and he forked a gem/project called &#8220;fishface&#8221;&#8230; the way you install would be:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;color: #0000FF;">sudo</span> gem <span style="color: #c20cb9; font-weight: bold;color: #0000FF;">install</span> billybob-fishface</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://ruby.zigzo.com/2009/02/15/install-gems-from-github/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
