<?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>Beige Sunshine &#187; Rails</title>
	<atom:link href="http://blog.beigesunshine.com/category/ruby/rails/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.beigesunshine.com</link>
	<description>Welcome to your head.</description>
	<lastBuildDate>Fri, 09 Jul 2010 14:14:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Extremely Simple Calendar Integration for Rails</title>
		<link>http://blog.beigesunshine.com/2007/08/08/extremely-simple-calendar-integration-for-rails/</link>
		<comments>http://blog.beigesunshine.com/2007/08/08/extremely-simple-calendar-integration-for-rails/#comments</comments>
		<pubDate>Wed, 08 Aug 2007 19:05:58 +0000</pubDate>
		<dc:creator>mendicant</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.beigesunshine.com/?p=39</guid>
		<description><![CDATA[UPDATED 2008-11-19:
I didn&#8217;t update my blog for over a year, and as such decided to perform a reboot. The information previously contained on this page was out of date, and as such I didn&#8217;t keep it around. However, it turns out there&#8217;s a few places linking to this page, so I&#8217;ve decided to at least [...]]]></description>
			<content:encoded><![CDATA[<p><strong>UPDATED 2008-11-19:</strong></p>
<p><strong></strong>I didn&#8217;t update my blog for over a year, and as such decided to perform a reboot. The information previously contained on this page was out of date, and as such I didn&#8217;t keep it around. However, it turns out there&#8217;s a few places linking to this page, so I&#8217;ve decided to at least keep this from 404&#8242;ing.</p>
<p>The original blog post was centered around a plugin that you can now find at: <a href="http://code.google.com/p/calendardateselect/">http://code.google.com/p/calendardateselect</a></p>
<p>It really is a great plugin, and if you go to the site you&#8217;ll find it&#8217;s got very simple instructions on how to install and use it.</p>
<p>Good luck!</p>
<p><strong>Update 2008-11-25:</strong></p>
<p><strong></strong>Found the text of the old tutorial.</p>
<p>Today we’ll go over an extremely simple way to add a javascript/css calendar to your Rails app. We will be using the Calendar Date Select Plugin. It is a small, easy to use calendar based on the prototype library.</p>
<p>This was written back in the day for Rails 1.2, so take all this information with a grain of salt.</p>
<p>Installation is simple, and uses the typical installation syntax:<br />
script/plugin install http://calendardateselect.googlecode.com/svn/tags/calendar_date_select</p>
<p>Voila! Installed!</p>
<p>Now, we just need to integrate it.</p>
<p>First, in your layout you need to add the javascript tag:<br />
&lt;%= calendar_date_select_includes &#8220;silver&#8221; %&gt;</p>
<p>You can also use “red”, “blue” or “nil” for other color schemes.</p>
<p>Also note that you need to have prototype included as well, so if you haven’t already, you should also add the following to your layout:<br />
&lt;%= javascript_include_tag :defaults %&gt;</p>
<p>And now, we’re ready to use it! Usage is simple. I was using it to keep track of an expiry date for a property, so I used to the following tag:<br />
&lt;%= calendar_date_select_tag &#8220;property[expiry_date]&#8220;, @property.expiry_date.to_s  %&gt;</p>
<p>If you wish, you can also check out the demo section for more information on using it with Form Builder.</p>
<p>Finally, I didn’t like the default ‘natural’ syntax for the date “August 8th, 2007″, so I changed it to use my preference, hyphenated syntax. To do this, open your environment.rb file and add the following line:<br />
CalendarDateSelect.format = :hyphen_ampm</p>
<p>There! That is all I needed to do. Of course, there are more options, simply adding a :time =&gt; true will allow you to have a time field as well. There are a few more configuration options available for the calendar. You can find out more and get some more screenshots by visiting the project’s homepage.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beigesunshine.com/2007/08/08/extremely-simple-calendar-integration-for-rails/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Cascading Selects in Rails</title>
		<link>http://blog.beigesunshine.com/2007/07/18/cascading-selects-in-rails/</link>
		<comments>http://blog.beigesunshine.com/2007/07/18/cascading-selects-in-rails/#comments</comments>
		<pubDate>Wed, 18 Jul 2007 19:16:33 +0000</pubDate>
		<dc:creator>mendicant</dc:creator>
				<category><![CDATA[Rails]]></category>

		<guid isPermaLink="false">http://blog.beigesunshine.com/?p=47</guid>
		<description><![CDATA[Update 2008-11-19:
I would like to apologize. After not updating my blog in almost a year, I decided to perform a reboot. During that time I decided that the information contained in this post was not current and decided not to keep it. It turns out that some people were linking here, despite the fact that [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update 2008-11-19:</strong></p>
<p>I would like to apologize. After not updating my blog in almost a year, I decided to perform a reboot. During that time I decided that the information contained in this post was not current and decided not to keep it. It turns out that some people were linking here, despite the fact that I had only written two posts! I was quite happy to learn that, but sad to find out you were all getting 404s now.</p>
<p>I&#8217;m sad to say that the information is no longer available, and I&#8217;m not able to rewrite it with some more current information. However, it looks like you can find a better and more up to date tutorial <a href="http://pullmonkey.com/2008/3/30/dynamic-select-boxes-ruby-on-rails">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.beigesunshine.com/2007/07/18/cascading-selects-in-rails/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
