<?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:ymaps="http://api.maps.yahoo.com/Maps/V2/AnnotatedMaps.xsd">

<channel>
	<title>The Codebelay Blog &#187; ruby on rails</title>
	<atom:link href="http://www.codebelay.com/blog/category/ruby-on-rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.codebelay.com/blog</link>
	<description>A Journal of Software That Makes Coding Safer and Easier to Manage</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:17:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Redboxing with Rails: Modal Windows FTW</title>
		<link>http://www.codebelay.com/blog/2008/11/01/redboxing-with-rails-modal-windows-ftw/</link>
		<comments>http://www.codebelay.com/blog/2008/11/01/redboxing-with-rails-modal-windows-ftw/#comments</comments>
		<pubDate>Sat, 01 Nov 2008 22:59:31 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[ajax]]></category>
		<category><![CDATA[modal windows]]></category>
		<category><![CDATA[redbox plugin]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=350</guid>
		<description><![CDATA[There&#8217;s a great lightbox plugin for Ruby on Rails called Redbox. Unfortunately, it doesn&#8217;t work out of the box, but here&#8217;s the patch for redbox.js: Replace: Element.setTop(window_id, boxTop); Element.setLeft(window_id, boxLeft); With: $(window_id).style.top = boxTop + &#8220;px&#8221;; $(window_id).style.left = boxLeft + &#8220;px&#8221;; Remove or comment out: Element.hide(&#8216;RB_loading&#8217;); Remove: &#60;div id=&#8221;RB_loading&#8221;&#62;&#60;/div&#62;]]></description>
			<content:encoded><![CDATA[<p></p><p>There&#8217;s a great lightbox plugin for Ruby on Rails called <a href="http://blog.craigambrose.com/past/2006/8/16/redbox-a-rails-compatible-lightbox/">Redbox</a>. Unfortunately, it doesn&#8217;t work out of the box, but here&#8217;s the <a href="redbox_patch.dif">patch</a> for redbox.js:</p>
<p>Replace:</p>
<div style="background: #000; color: #fff; padding: 10px;">
                Element.setTop(window_id, boxTop);<br />
                Element.setLeft(window_id, boxLeft);
</div>
<p>With:</p>
<div style="background: #000; color: #fff; padding: 10px;">
    $(window_id).style.top = boxTop + &#8220;px&#8221;;<br />
    $(window_id).style.left = boxLeft + &#8220;px&#8221;;
</div>
<p>Remove or comment out:</p>
<div style="background: #000; color: #fff; padding: 10px;">
Element.hide(&#8216;RB_loading&#8217;);
</div>
<p>Remove:</p>
<div style="background: #000; color: #fff; padding: 10px;">
&lt;div id=&#8221;RB_loading&#8221;&gt;&lt;/div&gt;
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2008/11/01/redboxing-with-rails-modal-windows-ftw/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Rails Console Makes Test Object Creation and Debugging Easy</title>
		<link>http://www.codebelay.com/blog/2008/08/21/the-rails-console-makes-test-object-creation-and-debuggingeasy/</link>
		<comments>http://www.codebelay.com/blog/2008/08/21/the-rails-console-makes-test-object-creation-and-debuggingeasy/#comments</comments>
		<pubDate>Thu, 21 Aug 2008 16:54:31 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[How-To]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[debugging]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[rails console]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=144</guid>
		<description><![CDATA[I really like how the Rails console solves the problems of test object creation and debugging. Usually, a web developer will push code to the webserver and hit shift-reload on the web browser. With the Rails console, you can avoid all that shift-reload madness. If I wanted to create 10000 blog posts for testing, I [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>I really like how the Rails console solves the problems of test object creation and debugging.</p>
<p>Usually, a web developer will push code to the webserver and hit shift-reload on the web browser. With the Rails console, you can avoid all that shift-reload madness.</p>
<p>If I wanted to create 10000 blog posts for testing, I could do something like this:</p>
<p><strong>script/console<br />
10000.times<br />
{ |i| Post.create(:title => &#8220;post number: &#8221; + i.to_s, :body => &#8220;autogen Booyah!&#8221;) }<br />
</strong><br />
Through the console I can also do debugging pretty easily:</p>
<p><strong>>> p = Post.find 888</strong></p>
<p>And get this as output:</p>
<pre>
=> #<Post id: 888, title: "post number: 888", body: "autogen Booyah!", created_at:
"2008-08-09 20:31:57", updated_at: "2008-08-09 20:31:57"></pre>
<p>A lot of problems in Rails are just solved by running script/console and checking the values of certain variables that are pretty hard to get at through a web browser.</p>
<p>There is pretty much no limit to what can be done through the Rails console. <a href="http://tektastic.com/">Konstantin Gredeskoul</a>, web developer and songwriter, has found a way to <a href="http://tektastic.com/2006/12/ruby-on-rails-how-to-load-session.html">load session data through the console</a>.</p>
<div class="js-kit-rating" title="Rated item" permalink=""></div>
<div class="js-kit-rating" title="Scored item" view="score" permalink=""></div>
<p><script src="http://js-kit.com/ratings.js"></script></p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2008/08/21/the-rails-console-makes-test-object-creation-and-debuggingeasy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mephisto: Blogging Software on Rails</title>
		<link>http://www.codebelay.com/blog/2008/08/19/mephisto-blogging-software-on-rails/</link>
		<comments>http://www.codebelay.com/blog/2008/08/19/mephisto-blogging-software-on-rails/#comments</comments>
		<pubDate>Tue, 19 Aug 2008 18:25:34 +0000</pubDate>
		<dc:creator>barce</dc:creator>
				<category><![CDATA[TechBiz]]></category>
		<category><![CDATA[WebApps]]></category>
		<category><![CDATA[ruby on rails]]></category>
		<category><![CDATA[blogging]]></category>
		<category><![CDATA[blogging software]]></category>
		<category><![CDATA[mephisto]]></category>
		<category><![CDATA[rails]]></category>

		<guid isPermaLink="false">http://www.codebelay.com/blog/?p=125</guid>
		<description><![CDATA[Blogging software should meet four important criteria: 1) Easy import from a pre-existing piece of blogging software we&#8217;re not happy with. 2) Spam filtering protection in comments 3) Make it easy to add web analytics javascript tracking without deleting it during each upgrade. 4) Should make it easy to not look like Mephisto blogging software [...]]]></description>
			<content:encoded><![CDATA[<p></p><p>Blogging software should meet four important criteria:<br />
1) Easy import from a pre-existing piece of blogging software we&#8217;re not happy with.<br />
2) <a href="http://akismet.com/">Spam filtering protection</a> in comments<br />
3) Make it easy to add web analytics javascript tracking without deleting it during each upgrade.<br />
4) Should make it easy to not look like Mephisto blogging software or WordPress or like generic blogging software.</p>
<p><a href="http://www.mephistoblog.com"><img src="http://www.codebelay.com/img/mephisto-overview.gif" alt="Mephisto screenshot" /></a></p>
<p><a href="http://www.mephistoblog.com/">Mephisto</a> meets all four criteria.</p>
<p>Plus it leverages the advantages of <a href="http://rubyonrails.org/">Rails</a> in that out of the box you can deploy to development, test and production environments. Also it integrates with no mess into shopify or any other Rails project that you might be working.</p>
<p>Hats off to  <a href="http://weblog.techno-weenie.net">Rick Olson</a><em>(Development)</em> and <a href="http://encytemedia.com">Justin Palmer</a><em>(UI/Design)</em> for making Mephisto along with &#8220;a bunch of other cool people.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.codebelay.com/blog/2008/08/19/mephisto-blogging-software-on-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.278 seconds -->
