<?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>The Hobo Blog</title>
	<atom:link href="http://hobocentral.net/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://hobocentral.net/blog</link>
	<description>Hobo - the web app builder for Rails</description>
	<lastBuildDate>Tue, 15 Nov 2011 09:18:54 +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>Hobo 1.3 Released!</title>
		<link>http://hobocentral.net/blog/2011/11/15/hobo-1-3-released/</link>
		<comments>http://hobocentral.net/blog/2011/11/15/hobo-1-3-released/#comments</comments>
		<pubDate>Tue, 15 Nov 2011 09:18:54 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=369</guid>
		<description><![CDATA[At long last, Hobo 1.3 is released.

The big news in 1.3, as most of you will know, is Rails 3 support. There are a bunch of other improvements as well. Read the details here:

http://cookbook.hobocentral.net/manual/changes

To get Hobo 1.3 just gem update hobo.

The work behind Hobo 1.3 is mostly thanks to Domizio Demichelis, and as always Bryan [...]]]></description>
			<content:encoded><![CDATA[<p>At long last, Hobo 1.3 is released.</p>

<p>The big news in 1.3, as most of you will know, is Rails 3 support. There are a bunch of other improvements as well. Read the details here:</p>

<p><a href="http://cookbook.hobocentral.net/manual/changes">http://cookbook.hobocentral.net/manual/changes</a></p>

<p>To get Hobo 1.3 just <code>gem update hobo</code>.</p>

<p>The work behind Hobo 1.3 is mostly thanks to Domizio Demichelis, and as always Bryan Larsen and Matt Jones have made some great contributions. Thanks guys, and thanks to everyone in the Hobo community for your part, even if it&#8217;s just being there on the forum for newcomers. And of course thanks to Owen Dall and <a href="http://barquin.com">Barquin International</a> for their continued sponsorship, without which we wouldn&#8217;t have got here.</p>

<p>We would like to have released Hobo 1.3 much sooner, so apologies that it has taken so long. Work has already begun on Hobo 1.4 and Rails 3.1 compatibility.</p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2011/11/15/hobo-1-3-released/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Progress on &#8220;Rapid Rails 3 with Hobo&#8221;</title>
		<link>http://hobocentral.net/blog/2011/08/15/progress-on-rapid-rails-3-with-hobo/</link>
		<comments>http://hobocentral.net/blog/2011/08/15/progress-on-rapid-rails-3-with-hobo/#comments</comments>
		<pubDate>Mon, 15 Aug 2011 12:51:41 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=365</guid>
		<description><![CDATA[Kevin has been making steady progress converting the MS Word version of the book into Lyx and making changes from Suzannah&#8217;s  edits.

We hope that using the LyX layouts and using a public Github repo will make it easier to manage edits and updates, and provide a better framework for you to contribute and &#8220;roll-your-own&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Kevin has been making steady progress converting the MS Word version of the book into Lyx and making changes from Suzannah&#8217;s  edits.</p>

<p>We hope that using the LyX layouts and using a public Github repo will make it easier to manage edits and updates, and provide a better framework for you to contribute and &#8220;roll-your-own&#8221; version of the book.</p>

<p>If you would like to follow along, the Github repo can be found at:</p>

<p><a title="https://github.com/BI/rapid-rails-3-with-hobo" href="https://github.com/BI/rapid-rails-3-with-hobo" target="_blank">https://github.com/BI/rapid-rails-3-with-hobo</a></p>

<p>Cheers,</p>

<p>Owen</p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2011/08/15/progress-on-rapid-rails-3-with-hobo/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Hobo 1.3 Release Candidate</title>
		<link>http://hobocentral.net/blog/2011/05/26/hobo-1-3-release-candidate/</link>
		<comments>http://hobocentral.net/blog/2011/05/26/hobo-1-3-release-candidate/#comments</comments>
		<pubDate>Thu, 26 May 2011 07:50:09 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=363</guid>
		<description><![CDATA[After a ton of work from Domizio and the rest of the team, we are finally ready with a Hobo 1.3 (aka Hobo for Rails 3) release candidate!

You can install the release candidate with

gem install hobo -v 1.3.0.RC


In addition to Rails 3 support there are a ton of improvements to Hobo in this release. We [...]]]></description>
			<content:encoded><![CDATA[<p>After a ton of work from Domizio and the rest of the team, we are finally ready with a Hobo 1.3 (aka Hobo for Rails 3) release candidate!</p>

<p>You can install the release candidate with</p>

<pre><code>gem install hobo -v 1.3.0.RC
</code></pre>

<p>In addition to Rails 3 support there are a ton of improvements to Hobo in this release. We have a new routing system where you can see all the generated routes in <code>config/hobo_routes.rb</code>. There is the new app-creation wizard to get you started even more easily with new projects. There are also many improvements internally, especially in the way Hobo interfaces with Rails, which will make it much easier to keep Hobo compatible with new versions of Rails.</p>

<p>We&#8217;ll be letting you know more about the improvements in Hobo 1.3 in some forthcoming blog posts.</p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2011/05/26/hobo-1-3-release-candidate/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>Hobo 1.1.0.pre4 released</title>
		<link>http://hobocentral.net/blog/2011/02/25/hobo-1-1-0-pre4-released/</link>
		<comments>http://hobocentral.net/blog/2011/02/25/hobo-1-1-0-pre4-released/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 20:42:21 +0000</pubDate>
		<dc:creator>Bryan Larsen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=355</guid>
		<description><![CDATA[Hobo 1.1.0.pre4 has been released into the wild.   Most of the differences between 1.1.0.pre3 and 1.1.0.pre4 mirror the changes betwen 1.0.2 and 1.0.3, including the security fix for lifecycles, so it&#8217;s highly recommended that you upgrade.   Here is the changelog for the entire 1.1 release:

The biggest change to Hobo 1.1 is [...]]]></description>
			<content:encoded><![CDATA[<p>Hobo 1.1.0.pre4 has been released into the wild.   Most of the differences between 1.1.0.pre3 and 1.1.0.pre4 mirror the changes betwen 1.0.2 and 1.0.3, including the security fix for lifecycles, so it&#8217;s highly recommended that you upgrade.   Here is the changelog for the entire 1.1 release:</p>

<p>The biggest change to Hobo 1.1 is that DRYML has been split into it&#8217;s
own gem and may now be used independently of Hobo or Rails:</p>

<pre><code>Dryml.render("&lt;html&gt;&lt;%= this %&gt;&gt;&lt;/html&gt;", {:this =&gt; something})
</code></pre>

<p>Automatic scopes has gained any_of_:</p>

<pre><code>Person.any_of_friends(Jack, Jill)
</code></pre>

<p>The default password validation has been changed to 6 characters, one
of which must not be lowercase.  Luckily, we also made the password
validation easier to change.   See
<a href="https://hobo.lighthouseapp.com/projects/8324/tickets/638">Bug #638</a> for
more information.</p>

<p>The <code>input-many</code>, <code>name-one</code> and <code>sortable-collection</code> tags have been
updated.  See the documentation for more details.</p>

<p>New tags have been added:  <code>sortable-input-many</code>, <code>login-form</code>.</p>

<p>Some css class names have been changed.   Hobo 1.0 creates class names
with the &#8216;[]&#8216; characters, which is technically illegal, although
supported by all browsers.   However, this does cause problems with
some third party libraries, such as JQuery.</p>

<p>All code changes may viewed on the <a href="https://github.com/tablatom/hobo/compare/1-0-stable...master">github
log</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2011/02/25/hobo-1-1-0-pre4-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hobo 1.0.3 released</title>
		<link>http://hobocentral.net/blog/2011/02/25/hobo-1-0-3-released/</link>
		<comments>http://hobocentral.net/blog/2011/02/25/hobo-1-0-3-released/#comments</comments>
		<pubDate>Fri, 25 Feb 2011 20:42:05 +0000</pubDate>
		<dc:creator>Bryan Larsen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=353</guid>
		<description><![CDATA[This is a security release.  All applications that use the reset
password functionality or are on versions of Rails prior to version
2.3.4 should upgrade.

To patch the reset password vulnerability, two changes have been made.

First of all, the lifecycle key hash mechanism has been changed.
Existing lifecycle keys will become invalid after you upgrade.
Lifecycle keys are typically [...]]]></description>
			<content:encoded><![CDATA[<p>This is a security release.  All applications that use the reset
password functionality or are on versions of Rails prior to version
2.3.4 should upgrade.</p>

<p>To patch the reset password vulnerability, two changes have been made.</p>

<p>First of all, the lifecycle key hash mechanism has been changed.
Existing lifecycle keys will become invalid after you upgrade.
Lifecycle keys are typically short lived, so this is unlikely to be a
problem for most applications.</p>

<p>Secondly, lifecycle keys are now cleared on every transition to avoid
replay vulnerabilities.  This new behaviour may be avoided by added
the <code>:keep_key =&gt; true</code> option to a transition.</p>

<p>More information about the vulnerability can be viewed on the <a href="https://hobo.lighthouseapp.com/projects/8324/tickets/666-user-model-secure-links-have-low-security">bug
report</a>.</p>

<p>Other changes:</p>

<p>The text input tag (<code>&lt;textarea&gt;</code>) has a security hole with versions of
Rails prior to 2.3.4.  This release makes using textarea safe on old versions of Rails, although it is highly recommended that you upgrade to
Rails 2.3.11 because of other security vulnerabilities.</p>

<p>The &#8220;include&#8221; automatic scope has been aliased to &#8220;includes&#8221; to
increase future compatibility with Rails 3.  Future versions of Hobo
will remove support for &#8220;include&#8221;.</p>

<p>This release increases compatibility with Ruby v1.9.2.</p>

<p>Hobo 1.0.2 introduced a major problem with chained scopes.   This has
been fixed.</p>

<p>All code changes may viewed on the <a href="https://github.com/tablatom/hobo/compare/v1.0.2...v1.0.3">github
log</a></p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2011/02/25/hobo-1-0-3-released/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>NIFA Reporting Portal and LMD 4.0: Now Live with Hobo!</title>
		<link>http://hobocentral.net/blog/2011/02/04/nifa-reporting-portal-and-lmd-4-0-now-live-with-hobo/</link>
		<comments>http://hobocentral.net/blog/2011/02/04/nifa-reporting-portal-and-lmd-4-0-now-live-with-hobo/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 01:57:17 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=337</guid>
		<description><![CDATA[We just stood up in production a centralized portal for the National Institute of Food and Agriculture (NIFA). The new portal will provide a common authentication and authorization portal for all major reporting applications for NIFA.  The Portal was created using Hobo and other open-source tools.

You can read more about the NIFA Reporting Portal and [...]]]></description>
			<content:encoded><![CDATA[<p>We just stood up in production a centralized portal for the National Institute of Food and Agriculture (NIFA). The new portal will provide a common authentication and authorization portal for all major reporting applications for NIFA.  The Portal was created using Hobo and other open-source tools.</p>

<p>You can read more about the NIFA Reporting Portal and the Leadership Management Dashboard (LMD) here:</p>

<p><a title="http://agile-business-intelligence.com/2011/01/22/new-nifa-reporting-portal-goes-live/" href="http://agile-business-intelligence.com/2011/01/22/new-nifa-reporting-portal-goes-live/">http://agile-business-intelligence.com/2011/01/22/new-nifa-reporting-portal-goes-live/</a></p>

<p><a title="http://portal.nifa.usda.gov" href="http://portal.nifa.usda.gov/" target="_blank">http://portal.nifa.usda.gov</a></p>

<p>We are now beginning the process of converting to Hobo 1.3 for Rails 3. Bryan is taking the lead on that.</p>

<p>Thanks much to Tom Locke, Father of Hobo, and all the other key contributors to growth of Hobo in the last two years, including Bryan Larsen, Domizio Demichellis,  and Matt Jones.</p>

<p>Those that contributed to the NIFA Portal and LMD 4.0 Hobo coding include Tom Locke, Bryan Larsen, Marcelo Giorgi, Gustav Paul, Angus Miller, Venka Ashtakala, and Jack Compton.  See my full blog (link above) for a listing of the entire team effort.</p>

<p>BTW,  if you are interested in Agriculture research data and trends&#8211;apply for an account.  You will have access to any <strong>public</strong> data in the system.</p>

<p>Cheers!</p>

<p>-Owen</p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2011/02/04/nifa-reporting-portal-and-lmd-4-0-now-live-with-hobo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Happy New Year!</title>
		<link>http://hobocentral.net/blog/2011/01/05/happy-new-year/</link>
		<comments>http://hobocentral.net/blog/2011/01/05/happy-new-year/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 12:21:37 +0000</pubDate>
		<dc:creator>Owen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=335</guid>
		<description><![CDATA[This is just a quick post to wish all of you in the Hobo community the best for 2011.

We are soon approaching the release of Hobo 1.3 for Rails 3 (now at pre-release #25  and hope to have a draft of the PDF book &#8220;Rapid Rails 3 with Hobo&#8221;  completed by the end [...]]]></description>
			<content:encoded><![CDATA[<p>This is just a quick post to wish all of you in the Hobo community the best for 2011.</p>

<p>We are soon approaching the release of Hobo 1.3 for Rails 3 (now at pre-release #25  and hope to have a draft of the PDF book &#8220;Rapid Rails 3 with Hobo&#8221;  completed by the end of January.   Thanks much to Domizio for all his hard work on 1.3 and his helpful documentation and edits to the 1.0 versions of &#8220;Rapid Rails with Hobo&#8221; and &#8220;Hobo at Work&#8221;, which Venka has incorporated up through Chapter 4 of the new version.</p>

<p>I hope that Hobo, Rails, and Ruby have made your app building more productive and fun.</p>

<p>Cheers!</p>

<p>-Owen</p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2011/01/05/happy-new-year/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Hobo 1.0.2 and 1.1.0.pre2 released</title>
		<link>http://hobocentral.net/blog/2010/11/15/328/</link>
		<comments>http://hobocentral.net/blog/2010/11/15/328/#comments</comments>
		<pubDate>Mon, 15 Nov 2010 16:17:18 +0000</pubDate>
		<dc:creator>Bryan Larsen</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=328</guid>
		<description><![CDATA[On Friday I released three new Hobo gems:  1.0.2, 1.1.0.pre0 and 1.1.0.pre2.  (1.1.0.pre1 was a glitch).

Here are the notes for 1.0.2 from CHANGES.txt:

1.0.2 is almost identical to 1.0.1 except that it updates the
version requirements to exclude Rails3.  (Rails3 support is being worked on in the 1.3 branch).

This release silences some warnings produced [...]]]></description>
			<content:encoded><![CDATA[<p>On Friday I released three new Hobo gems:  1.0.2, 1.1.0.pre0 and 1.1.0.pre2.  (1.1.0.pre1 was a glitch).</p>

<p>Here are the notes for 1.0.2 from CHANGES.txt:</p>

<p><em>1.0.2 is almost identical to 1.0.1 except that it updates the
version requirements to exclude Rails3.  (Rails3 support is being worked on in the 1.3 branch).</p>

<p>This release silences some warnings produced when running with Rails
2.3.10.</p>

<p>This release contains preliminary support for Ruby 1.9.2, although you
may encounter problems if you use Single Table Inheritance (STI)
models.</p>

<p>A few very minor bug fixes have also been included.  See the <a href="https://github.com/tablatom/hobo/compare/v1.0.1...v1.0.2">github
log</a> for
more details.
</em></p>

<p>1.1.0.pre0 is essentially a packaging of Hobo trunk as it existed a month ago.   (So it does not include the improvements added for 1.0.2) This version has been stable for people, and has been known to be used in production use.</p>

<p>The biggest difference between 1.0.X and 1.1.X is that Dryml has been split out into its own gem.  There are also some very minor incompatibilities that affect things like CSS class names.  The delta between 1.0.2 and 1.1.0.pre2 can be viewed on <a href="https://github.com/tablatom/hobo/compare/v1.0.2...v1.1.0.pre2">github</a></p>

<p>1.1.0.pre2 merges in fixes that have accumulated on several vendor branches of Hobo, as well as the 1.0.2 fixes.    1.1.0.pre2 requires the &#8220;&#8211;pre&#8221; option to be installed:</p>

<pre><code>gem install hobo -v 1.1.0.pre2 --pre
</code></pre>

<p>As always when upgrading hobo versions, you will probably want to run</p>

<pre><code>ruby script/generate hobo_rapid
</code></pre>

<p>or</p>

<pre><code>rake hobo:symlink_assets
</code></pre>

<p>to ensure that you get the latest versions of the javascript and CSS files copied into your application.</p>

<p><strong>Which version of Hobo should you use?</strong></p>

<p>If you are currently using 1.0.0 or 1.0.1 in production, you only need to upgrade to 1.0.2 if you are also upgrading your version of Ruby or Rails or need one of the bugfixes listed <a href="https://github.com/tablatom/hobo/compare/v1.0.1...v1.0.2">here</a></p>

<p>If you have a Rails 2.3 project currently under active development, we recommend 1.1.0.pre2 (or the github master branch).   Hopefully we have 1.1.0 released before you go to production &#8212; but even if we don&#8217;t, we do not believe that there are any issues that would prevent 1.1.0.pre2 from being usable in production.</p>

<p>If you are developing a new project and/or wish to use Rails 3, the 1.3 branch of Hobo currently being developed by Domizio is definitely stabilizing and becoming useful.  The major issues preventing the release of 1.3 are all related to documentation. </p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2010/11/15/328/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Hobo 1.3 for Rails 3 pre-release</title>
		<link>http://hobocentral.net/blog/2010/09/30/hobo-1-3-for-rails-3-pre-release/</link>
		<comments>http://hobocentral.net/blog/2010/09/30/hobo-1-3-for-rails-3-pre-release/#comments</comments>
		<pubDate>Thu, 30 Sep 2010 20:58:21 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=325</guid>
		<description><![CDATA[Anyone wanting to have a play with Hobo + Rails 3, now is the moment!

We have started releasing some pre-release gems, so that anyone who wants to can help us find any last bugs so that we can release Hobo 1.3 final. You can install the latest pre-release with

gem install hobo --pre




I&#8217;ll take this chance [...]]]></description>
			<content:encoded><![CDATA[<p>Anyone wanting to have a play with Hobo + Rails 3, now is the moment!</p>

<p>We have started releasing some pre-release gems, so that anyone who wants to can help us find any last bugs so that we can release Hobo 1.3 final. You can install the latest pre-release with</p>

<pre><code>gem install hobo --pre
</code></pre>

<p><span id="more-325"></span></p>

<p>I&#8217;ll take this chance to show off a nice new feature that Domizio has added &#8211; the new app wizard.</p>

<p>The <code>hobo</code> command now has the same style as the new <code>rails</code> command in Rails 3, so to create a new app:</p>

<pre><code>hobo new my_app
</code></pre>

<p>The underlying <code>rails</code> command will run as always, but then you&#8217;ll see something new:</p>

<pre><code> Hobo Setup Wizard 
  Do you want to start the Setup Wizard now?
(Choose 'no' if you need to manually customize any file before running the Wizard.
You can rerun it at any time with `hobo g setup_wizard` from the application root dir.) [y|n]
</code></pre>

<p>(btw it&#8217;s actually in colour too, but you&#8217;ll have to install the gems to see for yourself!)</p>

<p>Check out some of the customisations you can do with some simple prompts:</p>

<pre><code>     Test Framework 
Do you want to customize the test_framework? [y|n] n

 Invite Only Option 
Do you want to add the features for an invite only website? [y|n] n

 User Resource 
Choose a name for the user resource [&lt;enter&gt;=user|&lt;custom_name&gt;]: 

Do you want to send an activation email to activate the user? [y|n] y

 Front Controller 
Choose a name for the front controller [&lt;enter&gt;=front|&lt;custom_name&gt;]: 

 Admin Subsite 
Do you want to add an admin subsite? [y|n] n
  =&gt; "n"

 DB Migration 
Initial Migration: [s]kip, [g]enerate migration file only, generate and [m]igrate [s|g|m]: m

 I18n 
The available Hobo internal locales are :en, :"es-DO", :it (please, contribute to more translations)
Do you want to set a default locale? Type the locale or &lt;enter&gt; to skip: 

 Git Repository 
Do you want to initialize a git repository now? [y|n] n
</code></pre>

<p>It&#8217;ll even do <code>git init</code> for you &#8211; aint that nice : )</p>

<p>There&#8217;s a much nicer one in there though &#8211; &#8220;Do you want to send an activation email to activate the user?&#8221;. That&#8217;s right, Hobo 1.3 has the much requested email activation built in, so now you just have to type a y instead of an n, and you&#8217;re done. Good times!</p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2010/09/30/hobo-1-3-for-rails-3-pre-release/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>HoboFields and Rails 3</title>
		<link>http://hobocentral.net/blog/2010/08/24/hobofields-and-rails-3/</link>
		<comments>http://hobocentral.net/blog/2010/08/24/hobofields-and-rails-3/#comments</comments>
		<pubDate>Tue, 24 Aug 2010 21:58:58 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[General]]></category>

		<guid isPermaLink="false">http://hobocentral.net/blog/?p=320</guid>
		<description><![CDATA[Update: I should of known better than to post this late at night. Now improved with actual working instructions!

Folks, thanks to Domizio&#8217;s great work, HoboFields is ready to try out with Rails 3. Here&#8217;s a quick guide to getting it installed and running the migration generator. You&#8217;ll need git to grab the latest code, as [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Update:</strong> I should of known better than to post this late at night. Now improved with actual working instructions!</p>

<p>Folks, thanks to Domizio&#8217;s great work, HoboFields is ready to try out with Rails 3. Here&#8217;s a quick guide to getting it installed and running the migration generator. You&#8217;ll need git to grab the latest code, as nothing has been released as a gem, but apart from that you won&#8217;t have to do anything too technical. Please note, Rails 3 RC2 just dropped today, but right now we&#8217;re still on RC1, so please make sure you have that version of Rails installed if you want to try this out.</p>

<p><span id="more-320"></span></p>

<p>OK, let&#8217;s grab the code:</p>

<pre><code>git clone http://github.com/tablatom/hobo.git
</code></pre>

<p>The Rails 3 work is happening on the cunningly named <code>rails3</code> branch, so you now need to</p>

<pre><code>cd hobo
git checkout origin/rails3
</code></pre>

<p>Next, we use Rake to generate and install the gems for HoboSupport and HoboFields. Note that this step requires the <code>jeweler</code> gem, so you have first have to:</p>

<pre><code>gem install jeweler
</code></pre>

<p>Once you&#8217;ve got jeweler installed:</p>

<pre><code>cd hobo_support
rake install
cd ../hobo_fields
rake install
</code></pre>

<p>That&#8217;s it! We&#8217;re ready to try a Rails 3 app with HoboFields. Assuming you have Rails 3 installed, use the new syntax for the <code>rails</code> command to create a new app:</p>

<pre><code>cd somewhere/for/your/test/app
rails new test_hobofields
cd test_hobofields
</code></pre>

<p>Now, the way to add a gem to a Rails 3 app, is to add the gem to Bundler&#8217;s <code>Gemfile</code>. Edit that file, and add this line, at the end:</p>

<pre><code>gem 'hobo_fields', '1.3.0.pre1'
</code></pre>

<p>If you now run</p>

<pre><code>rails generate
</code></pre>

<p>You should see two Hobo generators listed in the available generators. Let&#8217;s create a Hobo model (note the nice new namespaced generator syntax).</p>

<pre><code>rails generate hobo:model book name:string description:text
</code></pre>

<p>You can see the fields block has been added to the normal model template if you look at <code>app/models/book.rb</code>:</p>

<pre><code>class Book &lt; ActiveRecord::Base

  fields do
    name        :string
    description :text
  end

end
</code></pre>

<p>Now, let&#8217;s watch HoboFields work its magic and migrate the database for us.</p>

<pre><code>rails generate hobo:migration
</code></pre>

<p>At the prompt, choose &#8220;m&#8221;, then give the migration a name. If everything is going according to plan, the local SQLite development database should be migrated to include the <code>books</code> table. We can check at the SQLite prompt:</p>

<pre><code>rails dbconsole
</code></pre>

<p>Then at the SQLite prompt:</p>

<pre><code>.schema
</code></pre>

<p>You should see</p>

<pre><code>CREATE TABLE "books" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255), "description" text);
CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL);
CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version");
</code></pre>

<p>Score! And did you notice? Domizio even gave us a <em>colored</em> prompt in the migration generator. Too much : )</p>
]]></content:encoded>
			<wfw:commentRss>http://hobocentral.net/blog/2010/08/24/hobofields-and-rails-3/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

