Rails Startup App – Basecamp (with Rails 2.3)

A lot of GitHub projects are dedicated to creating a Rails Start-up application that should have the most used functionalities in any web application, like:

  • user authentication
  • profile management
  • user roles
  • users management
  • integration with other authentication systems (OpenID, FacebookConnect, etc)

Some of the most well known are listed below:

  appstarter - http://github.com/nileshtrivedi/appstarter
  baseapp - http://github.com/ariejan/baseapp
  blank - http://github.com/giraffesoft/blank
  bort - http://github.com/fudgestudios/bort
  communityengine - http://github.com/bborn/communityengine
  embark - http://github.com/lwallenstein/embark
  insoshi - http://portal.insoshi.com
  lovdbyless - http://lovdbyless.com
  openid-rails-kit - http://github.com/stympy/openid-rails-kit

I personaly prefer the baseapp, because it is bundeled with user management features, it has a clean implementation, it does not come with all the social networking crap. Quoting from its features (selection):

  • Default dashboard page
  • Administration panel where you can:
    • Manage users (add, delete, purge, suspend, activate, send new passwords)
    • Manage settings
  • User authentication, with password recovery and login recovery and account activation (by email)
  • User Profiles:
    • Location, Website, Full name fields by default, easily extendible.
    • Gravatar for avatar support
  • Very useful Rails plugin available:
    • restful_authentication
    • acts_as_state_machine
    • asset_packager
  • Multi-stage deployments according to the D-TAP system (Development, Testing, Acceptance, Production). If you don’t want to use, production is the default deployment option. more info

To make it work with Rails 2.3:

  • To get past the
Missing the Rails 2.2.2 gem. Please `gem install -v=2.2.2 rails`, update your RAILS_GEM_VERSION setting in config/environment.rb for the Rails version you do have installed, or comment out RAILS_GEM_VERSION to use the latest version installed

edit config/environment.rb and comment the following line:

RAILS_GEM_VERSION = '2.2.2' unless defined? RAILS_GEM_VERSION
  • Rails 2.3 changes the way plugins are loaded. Therefore, the open_id_authentication plugin will be broken. To get past the
uninitialized constant Rails::Plugin::OpenIdAuthentication

update your OpenIdAuthentication plugin to the latest version or patch the init.rb file as shown here. Stupid ideea, seen on lots of posts. After that, the OpenID plugin will still not work. Just upgrade the plugin to the latest version:

script/plugin install git://github.com/rails/open_id_authentication.git --force

  • To get past the
uninitialized constant ApplicationController

Run:

rake rails:update:application_controller
Advertisements

3 Responses

  1. […] may want to check a previous article about this […]

  2. […] may want to check a previous article about this […]

  3. […] may want to check a previous article about this […]

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: