Posts Tagged ‘rails’

Seeding Rails App With RESTful Address Data

Wednesday, April 28th, 2010 by Jesper Rønn-Jensen

Grabbing data from Restful webservices has never been easier. I use this code in the Rails /db/seeds.rb file to grab data from the Danish webservice with addresses, municipalities, regions, etc. I decided to import the data into a local database to ensure it could work offline. Code from /db/seeds.rb file: Now I can access municipalities […]

Selection Groups in Rails made less cumbersome

Tuesday, September 1st, 2009 by Jesper Rønn-Jensen

I made this addition today after (once again) struggling with option groups for a nested Rails model. My solution: create a new tag for FormOptionsHelper: grouped_select http://gist.github.com/179075

Shorthand to clean up installed Rubygems (but don’t cleanup Rails)

Friday, May 29th, 2009 by Jesper Rønn-Jensen

I trimmed my installed Rubygems on my local development machine. The command “sudo gem cleanup” is just for that. Only problem: What about my older Rails apps that require a specific version of Rails, ActiveRecord, etc.? My solution: gem list –no-versions | grep -v “^active” | grep -v “^action” | grep -v “^rails$” | xargs […]

Plugin for Rails’s Resource Controller

Friday, November 7th, 2008 by Jesper Rønn-Jensen

If you’re using Resource Controller for Ruby on Rails, you may want to look atthe plugin I just created. From the readme file: ResouceControllerRespondTo ========================== Extends ResourceController plugin for Rails to make it respond_to .xml and .json formats Based on code by Florent Piteau and Joe Fiorini… Jesper merely provided the glue and packed as […]

My Talk at Reboot8: Prototyping

Thursday, June 1st, 2006 by Jesper Rønn-Jensen

Today is the time for my ten minute presentation at Reboot. I have ten minutes between 16.45 and 17.30 to give my talk. Topic: Prototype driven development with Ruby on Rails, and demo of the application we made at Capgemini with the Danish public Agency of Companies and Commerce. Presentation (Powerpoint format) for download here: […]