selection_options_for now on github

Mark's Rails plugin for selection_options_for  is now available on github.   More details are in the Extended section.


Read Full Entry ...

-- Mark Windholtz

CART Feb 2008 Presentations

Here are the presentations I gave at C-ART in Feb 2008.

Xp-Scrum Comparison

  • Focuses on XP, where another presentation focused on Scrum

Lean Software Development

  • A quick overview

Golden Road of Agile

  • Proposal for uniting various approaches to create the Golden Road of Agile.
  • Includes: Unix, Ruby, Rails, XP, Scrum, Lean Software Development, Thoughput Accounting.
  • The feedback I got from the group was that it needs a better definition of the problem that it is addressing.  So that is now on my TODO list.

-- Mark Windholtz

Mountain Goat Software, site upgrade

AgileDNA constructed site gets an upgrade.

 

Mountain Goat Software 


-- Mark Windholtz

Plugin: selection_options_for

Many selection lists in an application do not change and so the quickest way to code them is to put the list in the code itself. For example:

  • Child, Adult, or Senior.
  • Male or Female.
  • Yes or No.

selection_options_for manages static selection lists. If you selection lists are dynamically generated this is not the answer.

selection_options_for allows you to

  • keep the display labels in the model
  • store a 1 character flag in the DB
  • test the value with methods in the code
class Article < ActiveRecord::Baseselection_options_for :file_type_option,[ :pdf, 'PDF'],[ :hmlt, 'HTML'],[ :text, 'X', 'Textfile']end # class

Then you can do stuff like ....

  assert   file_type_option_pdf?

OR

   

More examples are in the README file. Code available here ... or use ...

svn export --username anonymous http://agiledna.com/svn/pub/plugins/selection_options_for/trunk selection_options_for

Thanks to Scott Barron for code review and tips on tightening up the code.

Related post:

Multi-select lists boxes in Rails


-- Mark Windholtz