Skip to content

Cory Foy

Organizational agility through intersecting business and technology

Menu
  • FASTER Fridays
  • Mapping Mondays
  • Player Embed
  • Search Videos
  • User Dashboard
  • User Videos
  • Video Category
  • Video Form
  • Video Tag
Menu

Ruby ActiveRecord and Windows Forms

Posted on May 5, 2006 by Cory Foy

In getting ready for my talk this weekend on Ruby, I scanned the RubyCLR project founder’s web site, and came across this post:

This is a really exciting development in RubyCLR. I’ve taken the first steps in integrating Rails’ most excellent ActiveRecord object-relational mapping layer with Windows Forms data binding.

He then goes on to show some screen shots and sample code. How much easier can you get then:

class MainForm
  def initialize
    form = Form.new
    form.Text = 'ActiveRecord and Windows Forms'

    grid = DataGridView.new
    grid.dock = DockStyle::Fill
    grid.data_source = Person.find_all
    form.controls.add(grid)

    @form = form
  end
end

I can’t wait to download the latest HEAD and play with it. Great job John!

© 2025 Cory Foy | Powered by Superbs Personal Blog theme