A Planet Aggregator for dakota.net.nz

Posted by Jack Sat, 09 Sep 2006 04:10:00 GMT

I have just set up the Rails Planet at www.dakota.net.nz to aggregate the two logs currently hosted there (this one right here included). Rails Planet is used at www.planetrubyonrails.org and does not appear to be in active development. As such I found there were a couple of querks to getting it set up.

Amoungst other things I suspect are mostly specific to my set up one big problem I faced was getting access to the admin interface. Since there was no default login with the install and there did not appear to be an initial setup phase I had no way of creating a user in order to then access the admin interface.

The solution I found was to comment out line 4 of app/controllers/admin/base_controller.rb:

class Admin::BaseController < ApplicationController

  layout "admin"
# before_filter :login_required

end

This essentially disabled authentication for the admin interface so I could access it without a login. Once I had set up a user account I then uncommented the line again and restarted the server to ensure the authentication was back in place.

Hopefully this helps anyone who is having similar problems.