<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>Ruby on Rails's topics - tribe.net</title>
  <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/threads/atom" />
  <subtitle>Tribe.net. Local Connections</subtitle>
  <entry>
    <title>MySQL, Ruby, Rails, and enumerated types</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/3a550d0b-c096-4618-a979-8654a56f8b38" />
    <author>
      <name>NakedBob</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/3a550d0b-c096-4618-a979-8654a56f8b38</id>
    <updated>2008-02-29T15:53:13Z</updated>
    <published>2008-02-26T05:46:27Z</published>
    <summary type="html">&lt;div&gt;Here's a little something I discovered that might help people out.  Especially if you're just getting started with RoR.
&lt;br/&gt;
&lt;br/&gt;I was creating a site for a friend where he needs users to fill out a form with pertinent info: first/last/email/address, etc.  So I set out creating a model, and realized when I got to the address that checking to make sure the $state entry was a valid, two letter, USPS-approved, state abbreviation was going to be a pain in the butt someday.  
&lt;br/&gt;So I asked myself, "Well, doesn't MySQL have enumerated types? Maybe I can just make $state only be one of the abbreviations."  Sure enough, with a little checking I found out that MySQL does.  
&lt;br/&gt;Second thought: "Does RoR know?"  With a little checking....it didn't.  Well, not really.  I found a patch that was kinda old, but after checking with a seasoned RoR friend, he pointed me to a plugin for enumerated types here:
&lt;br/&gt;http://enum-column.rubyforge.org
&lt;br/&gt;
&lt;br/&gt;Following the directions, using 
&lt;br/&gt;script/plugin install svn://rubyforge.org/var/svn/enum-column/plugins/enum-column
&lt;br/&gt;the plugin installed cleanly!
&lt;br/&gt;
&lt;br/&gt;The two examples I saw of using :enum used different syntax for the enum types, however.  Apparently you can use either.  When you're creating the enumerated types, you can use:  [ :a, :b, :c, :d ] or [ 'a', 'b', 'c', 'd' ].  I chose the latter, even though the plugin example uses the former, and it still worked.
&lt;br/&gt;
&lt;br/&gt;So, here's my model schema for the db:
&lt;br/&gt;ActiveRecord::Schema.define(:version =&gt; 1) do
&lt;br/&gt;
&lt;br/&gt;  create_table "clients", :force =&gt; true do |t|
&lt;br/&gt;    t.column "firstname",     :string
&lt;br/&gt;    t.column "lastname",      :string
&lt;br/&gt;    t.column "mail_address1", :string
&lt;br/&gt;    t.column "mail_address2", :string
&lt;br/&gt;    t.column "mail_city",     :string
&lt;br/&gt;    t.column "mail_state",    :enum,   :limit =&gt; [:AL, :AK, :AR, :AS, :AZ, :CA, 
&lt;br/&gt;:CO, :CT, :DC, :DE, :FL, :FM, :GA, :GU, :HI, :IA, :ID, :IL, :IN, :KS, :KY, :LA, 
&lt;br/&gt;:MA, :MD, :ME, :MH, :MI, :MN, :MO, :MP, :MS, :MT, :NC, :ND, :NE, :NH, :NJ, :NM, 
&lt;br/&gt;:NV, :NY, :OH, :OK, :OR, :PA, :PR, :PW, :RI, :SC, :SD, :TN, :TX, :UT, :VA, :VI, 
&lt;br/&gt;:VT, :WA, :WI, :WV, :WY]
&lt;br/&gt;    t.column "mail_zip",      :string
&lt;br/&gt;  end
&lt;br/&gt;
&lt;br/&gt;end
&lt;br/&gt;
&lt;br/&gt;push the migration to the db:
&lt;br/&gt;rake db:migrate 
&lt;br/&gt;
&lt;br/&gt;create your admin controller:
&lt;br/&gt;ruby script/generate controller admin
&lt;br/&gt;
&lt;br/&gt;create a scaffold:
&lt;br/&gt;class AdminController &amp;lt; ApplicationController 
&lt;br/&gt;scaffold :client
&lt;br/&gt;end 
&lt;br/&gt;
&lt;br/&gt;start your server:
&lt;br/&gt;ruby script/server
&lt;br/&gt;
&lt;br/&gt;and check your /admin page - it will present you with text boxes for everything, except the state - which will be a drop-down selection box!  Nifty!
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>NakedBob</dc:creator>
    <dc:date>2008-02-26T05:46:27Z</dc:date>
  </entry>
  <entry>
    <title>Offer to moderate</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/a90f6293-6284-4bca-9cc7-699c10fbb70c" />
    <author>
      <name>NakedBob</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/a90f6293-6284-4bca-9cc7-699c10fbb70c</id>
    <updated>2008-02-26T05:24:09Z</updated>
    <published>2008-02-26T05:24:09Z</published>
    <summary type="html">&lt;div&gt;I'll offer my services to moderate this tribe.  According to the rules, we just need some sort of consensus.  
&lt;br/&gt;
&lt;br/&gt;I can't imagine this tribe needs much moderation, anyway.
&lt;br/&gt;&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>NakedBob</dc:creator>
    <dc:date>2008-02-26T05:24:09Z</dc:date>
  </entry>
  <entry>
    <title>Looking for rails developer</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/9425fa2b-f118-4cf6-a3d1-2253a39fe116" />
    <author>
      <name>James</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/9425fa2b-f118-4cf6-a3d1-2253a39fe116</id>
    <updated>2007-12-13T17:20:41Z</updated>
    <published>2007-12-13T17:20:41Z</published>
    <summary type="html">&lt;div&gt;Morning,
&lt;br/&gt;
&lt;br/&gt;I have an existing rails site, http://www.itsyogapuertorico.com, that is in need of some work. Mostly backend stuff such as completing the basic CMS for content management, cleaning up the code, updating for rails 2.0, and some performance optimization.
&lt;br/&gt;
&lt;br/&gt;We've had one or two hitches with finding a reliable developer, so we'd like someone with a moderate portfolio. Honestly, all we want is a developer with a professional attitude, ability to make an accurate &amp;amp; realistic estimates of time to completion and costs, and the commitment to meet those estimates.
&lt;br/&gt;
&lt;br/&gt;This job is available for a freelancer with good references or development company. 
&lt;br/&gt;
&lt;br/&gt;Thanks!
&lt;br/&gt;
&lt;br/&gt;James Kyle&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>James</dc:creator>
    <dc:date>2007-12-13T17:20:41Z</dc:date>
  </entry>
  <entry>
    <title>RailsConf</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/56518727-98cc-4935-92e1-eccac6df1971" />
    <author>
      <name>b3gl</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/56518727-98cc-4935-92e1-eccac6df1971</id>
    <updated>2007-05-19T21:48:01Z</updated>
    <published>2007-05-19T06:01:20Z</published>
    <summary type="html">&lt;div&gt;Is anyone in town for RailsConf?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator>b3gl</dc:creator>
    <dc:date>2007-05-19T06:01:20Z</dc:date>
  </entry>
  <entry>
    <title>Ruby On Rails</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/436f6378-947c-4093-b5c3-70e4f2908d46" />
    <author>
      <name>yogi4peace</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/436f6378-947c-4093-b5c3-70e4f2908d46</id>
    <updated>2007-03-17T07:00:28Z</updated>
    <published>2007-03-17T07:00:28Z</published>
    <summary type="html">&lt;div&gt;Hello everyone, 
&lt;br/&gt;
&lt;br/&gt;I'm new to ruby on rails. I feel like im exploring in a jungle with a few good tools but no road to walk down. 
&lt;br/&gt;
&lt;br/&gt;if anyone wants to be ruby on rails nerd with me and just talk about things as we learn please send me a message. I learn best by having discussions with people and learning from each other. 
&lt;br/&gt;
&lt;br/&gt;I have some formal education with OOP a few years back and  a few years of experience with PHP, but the code was more written in line than with an OOP focus, however im familiar with using functions with PHP.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>yogi4peace</dc:creator>
    <dc:date>2007-03-17T07:00:28Z</dc:date>
  </entry>
  <entry>
    <title>Rails and Beer</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/4b9440ff-d45f-446a-b88b-3369cce18ddb" />
    <author>
      <name>Greg</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/4b9440ff-d45f-446a-b88b-3369cce18ddb</id>
    <updated>2007-03-14T05:40:18Z</updated>
    <published>2006-05-11T19:40:34Z</published>
    <summary type="html">&lt;div&gt;Anyone on here interested in giving up some spare time to help out on a web project for Brewers?   It'd be no pay at first, but may eventually lead to a small bit of compensation - we can discuss.
&lt;br/&gt;
&lt;br/&gt;The app has many parts to it: recipe formulator, recipe sharing/rating system, inventory controls, various technical calculators, etc. etc...  It's not too complex, but not simple either.  
&lt;br/&gt;
&lt;br/&gt;There's two of us working on it right now, and only one of is is doing the backend work...and he's learning Ruby/Rails as he goes, so it's slow going.   Getting a more experienced person in there would really help.   
&lt;br/&gt;
&lt;br/&gt;If you like beer, and especially if you brew beer yourself, this might be a fun project to work on.   Just send me a message!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>Greg</dc:creator>
    <dc:date>2006-05-11T19:40:34Z</dc:date>
  </entry>
  <entry>
    <title>Motown Rails</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/745c00c2-2dcb-4cdc-8d33-eac1b8a9a539" />
    <author>
      <name>Jason</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/745c00c2-2dcb-4cdc-8d33-eac1b8a9a539</id>
    <updated>2006-09-17T23:45:37Z</updated>
    <published>2006-09-17T23:45:37Z</published>
    <summary type="html">&lt;div&gt;Just found this Tribe, and was a bit surprised to find that it doesn't seem terribly active.
&lt;br/&gt;Well, either way, here's the gist of my story:
&lt;br/&gt;I'm a 33-year-old Graphic Designer/Multimedia artist turned ASP/VB COM programmer, and I've been just hankering after a web programming language that felt as natural to me as ASP felt when I first started into it seven years ago, but wasn't tied to the Windows world. Rails came as a revelation, and I've really enjoyed what I've read of it, so far.
&lt;br/&gt;
&lt;br/&gt;Now, I'm just trying to cut my teeth into Rails. I'm trying to get Typo installed on my shared space at Dreamhost... I've run into a few snags, so far, but I'm sure I'll get it figured out.
&lt;br/&gt;
&lt;br/&gt;Anyhow, hope to see more activity here in the near future! Anyone know if there are any Rails conferences near the Detroit, MI area?
&lt;br/&gt;
&lt;br/&gt;Jason M. Batchelor&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>Jason</dc:creator>
    <dc:date>2006-09-17T23:45:37Z</dc:date>
  </entry>
  <entry>
    <title>I want my braces!</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/049338e5-7a98-45fa-90ee-f6297d569d87" />
    <author>
      <name>pixelslut</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/049338e5-7a98-45fa-90ee-f6297d569d87</id>
    <updated>2006-05-19T02:55:13Z</updated>
    <published>2006-05-19T02:55:13Z</published>
    <summary type="html">&lt;div&gt;Ok so i had initially cas RoR off after i saw what i consider to be godawful syntax. Then in another discussion someone defeninding RoR said braces and what not are optional and could be used.. At that point i gave it a second thought because far be it from me to not jump on anything in which there is a bunch of hub-bub. But i have yet to find any example sof this optional syntax , ie one implementing the tried and true (), {}, [] instead of english like symbols suh as end and what not. Call me crazy but i &amp;amp;lt;3 brackets and braces and all that jazz it makes more sense to me when pooring over code than reading for literal statements.
&lt;br/&gt; 
&lt;br/&gt;As of yet though, i cant find any examples, documentation what have you covering this. Can some one point me in the right direction or something. I suppose i could jsut install everything and use trial and error but im too lazy for all that at the moment :-)&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>pixelslut</dc:creator>
    <dc:date>2006-05-19T02:55:13Z</dc:date>
  </entry>
  <entry>
    <title>Username and Password</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/79496037-2dd4-4f2e-88cc-78a7ba390632" />
    <author>
      <name>groovinjello</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/79496037-2dd4-4f2e-88cc-78a7ba390632</id>
    <updated>2006-04-20T23:19:33Z</updated>
    <published>2006-04-20T23:19:33Z</published>
    <summary type="html">&lt;div&gt;I'm trying to create a blog app where the updating portion is secured by a username and password.  I know how to creat the blog and everything, I just have no clue how to create the Username and password functionality.  
&lt;br/&gt;
&lt;br/&gt;Any suggestions?&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator>groovinjello</dc:creator>
    <dc:date>2006-04-20T23:19:33Z</dc:date>
  </entry>
  <entry>
    <title>Why use Ruby on Rails?</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/d366ef73-883f-468d-b98e-9dd0bb77abc1" />
    <author>
      <name />
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/d366ef73-883f-468d-b98e-9dd0bb77abc1</id>
    <updated>2006-03-18T17:32:41Z</updated>
    <published>2006-01-18T17:24:32Z</published>
    <summary type="html">&lt;div&gt;I was corresponding with a friend recently, and asked his opinion of Ruby on Rails. The following two paragraphs are his response:
&lt;br/&gt;
&lt;br/&gt;"Ruby's quite good, well worth learning, astronomically better than PHP or
&lt;br/&gt;Perl, and a lot more fun than Java. But for me it's not so much better than
&lt;br/&gt;Python that I'd switch (better in some ways that aren't very important to
&lt;br/&gt;me, worse in others that are important to me). I prefer the simplicity of
&lt;br/&gt;Python syntax. I already know Python well, and it has a lot of excellent
&lt;br/&gt;established well designed library modules and extensions, that have had all
&lt;br/&gt;the kinks worked out of them over the years. I'd use RoR if a project
&lt;br/&gt;required it, and I'd learn it if I had the time, but given the choice, I use
&lt;br/&gt;Python. 
&lt;br/&gt;
&lt;br/&gt;The TurboGears framework for Python is like Ruby on Rails in a lot of ways,
&lt;br/&gt;but there are things I like about it more than RoR. Especially the
&lt;br/&gt;templating system, called Kid. I'm not impressed by RoR's weird non-XML
&lt;br/&gt;templates. Kid is totally XML-centric, very Pythonic, and instead of trying
&lt;br/&gt;to reinvent a kludgy half assed template language syntax, it just lets you
&lt;br/&gt;use 100% full power Python via 100% standard XML. Never accept a template
&lt;br/&gt;language (like ASP) that tries to pervert XML and can't be processed with
&lt;br/&gt;off-the-shelf XML tools -- it's just not worth it. Also, some template
&lt;br/&gt;languages attempt to reinvent the if and loop statements and variables and
&lt;br/&gt;functions in half-assed ways, but I'm happy with Python and don't want to be
&lt;br/&gt;"protected" from it. That's the nice thing about Kid -- very Python and XML
&lt;br/&gt;friendly."
&lt;br/&gt;
&lt;br/&gt;His point about generic XML compatibility is excellent. I also appreciate what he says about Python. I'm a Python user and think it compares well with Ruby.
&lt;br/&gt;
&lt;br/&gt;So, why then would someone want to use Ruby on Rails? Well, I for one have yet to dive into XML, so I like the fact that Ruby on Rails doesn't require me to learn any XML. I have lots of experience with relational databases, so I can always work with my data from whatever back-end (MySQL or Postgres) my RoR app uses. I also think we will see the RoR framework extended to accommodate those who wish to work with XML. There is at least one Bay Area start-up (in stealth mode) that is working on extending RoR.
&lt;br/&gt;
&lt;br/&gt;Cheers,
&lt;br/&gt;
&lt;br/&gt;Adrien&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator />
    <dc:date>2006-01-18T17:24:32Z</dc:date>
  </entry>
  <entry>
    <title>What's the best Ruby on Rails book?</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/a285741f-b0e4-4a16-9574-6dfbad5e4a3f" />
    <author>
      <name>jenni</name>
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/a285741f-b0e4-4a16-9574-6dfbad5e4a3f</id>
    <updated>2006-03-01T19:46:10Z</updated>
    <published>2006-02-28T22:47:25Z</published>
    <summary type="html">&lt;div&gt;I'm interested in learning more about Ruby on Rails.  I already know quite a bit about what Java and Perl can do, and want to learn more about Ruby so I can decide what to use when designing a new application.
&lt;br/&gt;
&lt;br/&gt;Could anyone suggest a good Ruby on Rails book for a beginner or any good tutorial websites? &lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 2 replies
		&lt;/div&gt;</summary>
    <dc:creator>jenni</dc:creator>
    <dc:date>2006-02-28T22:47:25Z</dc:date>
  </entry>
  <entry>
    <title>RoR 1.0 and Ruby 1.8.4 are now out!</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/39ca914d-be7b-4064-a1e2-eb315c6f1c44" />
    <author>
      <name />
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/39ca914d-be7b-4064-a1e2-eb315c6f1c44</id>
    <updated>2005-12-31T02:25:36Z</updated>
    <published>2005-12-28T05:19:34Z</published>
    <summary type="html">&lt;div&gt;Ruby on Rails 1.0 was just released, and now Ruby 1.8.4 is out. Ruby 1.8.4 is suppose to work better with RoR. Looks like the train may pick up speed soon.&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 1 reply
		&lt;/div&gt;</summary>
    <dc:creator />
    <dc:date>2005-12-28T05:19:34Z</dc:date>
  </entry>
  <entry>
    <title>RoR liftoff!</title>
    <link rel="alternate" href="http://tribes.tribe.net/rubyonrails/thread/ce256900-941c-44df-aab1-f440eaf3f4a1" />
    <author>
      <name />
    </author>
    <id>http://tribes.tribe.net/rubyonrails/thread/ce256900-941c-44df-aab1-f440eaf3f4a1</id>
    <updated>2005-12-09T00:17:08Z</updated>
    <published>2005-12-09T00:17:08Z</published>
    <summary type="html">&lt;div&gt;Looks like Ruby on Rails is about to take off! RoR version 1.0 is due out next week. I can't wait to see where the RoR track will lead!&lt;/div&gt;
				&lt;div&gt;
			posted in
			&lt;a href="http://tribes.tribe.net/rubyonrails"&gt;Ruby on Rails&lt;/a&gt;
			- 0 replies
		&lt;/div&gt;</summary>
    <dc:creator />
    <dc:date>2005-12-09T00:17:08Z</dc:date>
  </entry>
</feed>



