Caboose Sample rails application
Courtenay : April 2nd, 2007
Update: please see http://sample.caboo.se for the latest news and updates to the sample apps.
I’m sick of creating the same blank-state app over and over so here is a nice blank-state rails app. This is not a generator or something like Hobo, it’s just a zipped up empty app with some code, tests, and plugins.
Did I say tests? I meant specs >:)
From the readme:
Caboose Sample App
This is a sample application containing a bunch of useful plugins and code to help you get started quicker.
It is intended to be an example of “better practices”, but with the intention of ultimately being
“best practice” through collaboration and iterative improvement.
The application implements:
- a user model with a few extra fields (last login, timezones)
- restful authentication.
- full timezone support
- basic views implemented with Yahoo! YUI CSS grids.
- behavioral testing with rspec, including good example of mocking in controller specs.
- exception notification
Some of the enhancements to the stock plugins are ripped from my private codebase, as yet unseen by the world :)
TODO:
- Polymorphic Image model using attachment_fu
- Sample controllers and models
- More plugins
- Good examples of ajax
- Better list of requirements
Get it here:
As always, hit up the comments with feature requests and bugs.
19 Responses to “Caboose Sample rails application”
Sorry, comments are closed for this article.
April 2nd, 2007 at 07:39 PM
Thanks, this is great!
April 2nd, 2007 at 08:24 PM
Sounds great! What gems does it require? I’m getting this error when I try to start.
April 2nd, 2007 at 09:28 PM
Y’know, I’m seeing a bunch of people put out these specialized Rails project templates these days.
Could this sort of thing be packaged as a gem which could then create the base directory given a command?
I wonder if there are a general set of web applications that people build and whether they could be classified so that a project template would be roughly ideal for a given one.
Maybe that’s getting too specific?
April 2nd, 2007 at 09:35 PM
Nice one…
Howabout make it available via SVN as well?
April 2nd, 2007 at 09:37 PM
I love it! I’ve been going through the same process recently on all of my apps - add YUI file, piston import the same plugins etc…
This is an actual time saver. Well done.
April 3rd, 2007 at 06:47 AM
I realize I’m probably asking a stupid question here, but how is this supposed to be used? I just unzipped the file, opened a command prompt in that directory and ran “rake db:migrate”. There’s no database.yml in restfulauthrspec, but even once I create one, if I run “rake db:migrate” I get this:
c:0:Warning: require_gem is obsolete. Use gem instead. (in C:/ruby/projects/restfulauthrspec) rake aborted! no such file to load – spec/rake/spectask C:/ruby/projects/restfulauthrspec/rakefile:10 (See full trace by running task with –trace)
April 3rd, 2007 at 07:54 AM
I second the svn request :-)
April 3rd, 2007 at 08:35 AM
@PabloC & Paul Barry You have to: gem install rspec gem install tzinfo
Worked for me
April 3rd, 2007 at 01:19 PM
Thanks Dimkin!
April 3rd, 2007 at 02:19 PM
Here’s a DSL-based approach to something similar: http://www.kylemaxwell.com/post/566177
The question, to me is, how does this integrate well with piston/svn/plugin update mechanisms, and, conversely, how does a DSL-based approach deal well with a complex installation process (i.e. adding models, etc).
Where is the middle ground?
April 4th, 2007 at 11:36 PM
Very nice.
April 5th, 2007 at 01:57 AM
Thanks! I want subversion too! ;)
April 7th, 2007 at 04:57 AM
Sessions view points to accountspath, but there’s no accountpath… Do you have any plans to add something like accounts system?
April 7th, 2007 at 01:17 PM
I’ll take patches for an account system
April 8th, 2007 at 08:02 AM
I had no idea so many other Rails devs liked/used Yahoo Grids. We’ve been using it in projects for a while and it’s really sped up our layout/view development.
We have a small helper we use that turns a collection into grids nicely that we’d like to share.
http://wonderfullyflawed.com/goodies/
April 8th, 2007 at 09:16 AM
apologies for another post: based on feedback, you can just install the yahoo grids helper with script/plugin install http://wonderfullyflawed.com/svn/grids_helper/
April 11th, 2007 at 06:29 AM
AppFuse for Rails! Nice work.
April 11th, 2007 at 07:37 AM
Neat! Please throw it under SVN control
April 11th, 2007 at 12:18 PM
This article is out of date. Please see the latest here:
http://blog.caboo.se/pages/sample-rails-application