Ruby on Rails Snippets & Howto's

Collection of Ruby on Rails related snippets and howto's that I find interesting enough to share with you guys. 
« Back to blog

Rails Skeletons


Screen_shot_2010-03-30_at_3

A great way to jumpstart your Ruby on Rails project is to use a skeleton or rails template. On github you can find several projects pre-populated with essential plugins and layouts.

Below you will find some of the best Ruby on Rails skeletons on Github:

Bort

Bort is a base Rails 2.2 application that makes creating new projects easier and faster. Bort is developed and maintained by Fudge Studios, Jim Neath and Matt Hall

- RESTful Authentication
- User Roles
- Will Paginate
- Exception Notifier
- Asset Packager

Big Old Rails Template

This template assists in spinning up new Rails applications quickly using Rails 2.3.

*  Authlogic  for user authentication, including password resets, anonymous_only, authenticated_only, and admin_only application helpers. Optionally installs user activation support.
* World’s simplest authorization system: manage multiple string roles on users with User#add_role, User#remove_role, User#clear_roles, and User#has_role?
* Date formats: :us, :us_with_time, :short_day, :long_day
* Paperclip for attachment management
* /pages/css_test will show most CSS styles in action
* Searchlogic for magic named scopes and search forms. Includes attribute_equals, attribute_does_not_equal, attribute_begins_with, attribute_like, attribute_ends_with, attribute_greater_than, attribute_null, attribute_blank, etc., etc.
* Stringex for extra string functionality – acts_as_url, String#to_ascii, String#to_html, String#to_url, String#remove_formatting, String.random
* US State application helpers
* will-paginate for pagination
* annotate to annotate models, exemplars, and routes
* carmen to handle state and country selects
* rake doc:diagram tasks for use with railroad

Blank

Blank is GiraffeSoft’s starter Rails application.

It makes heavy use of our standard toolset. Controllers are mostly written using ResourceController, and it is tested entirely with Thoughtbot’s Shoulda. Integration testing is taken care of by Cucumber.

- active_presenter
 - andand
 - hoptoad
 - mocha
 - rake
 - restful_authentication
 - ruby-openid
 - will_paginate

BaseJumper

There are others, I know, but this is how I like my apps to start out. You probably won’t like it, so move along.

*  Authentication (including password reset)
* Welcome page placeholder
* Contact Us form
* Basic styling using Blueprint CSS
* Spec driven development using rspec, without fixtures
* ActiveScaffold admin interface
* Application configuration file
* Less CSS for mixing in style
* JQuery and JQuery-UI installed
* FamFamFam icons where needed

Comments (0)

Leave a comment...