If you prefer a Railscast style video, you can also watch this video which is just a walk through of the getting started guide above.
I recommend following through with the entire getting started guide. I initially wanted to just use chef-solo, which seemed to make more sense, but it turns out it doesn't because you miss out on all kinds of cool features.
I advise against adding a bunch of cookbooks to your chef-repo early on, since there are weird dependencies and other issues …
Having using Acl9 for some time, it was refreshing to see RailsCast's Ryan Bate's take on authorization: CanCan . Ryan put together a webcast for CanCan that you can checkout here . There have been some nice additons since this initial release so do checkout the latest documentation on GitHub. I won't go into what I dislike about Acl9. It's a good system, with a nice DSL for defining permissions. I'll just talk about some of the things …
…hitch -m command. If you setup gravatars for all your devs+user1+user2@company.com email addresses then you'll get a nice picture in Github too.
I think that's about it really. We obviously just install gems as required and make customisations on a per developer need. We generally use Textmate for editing so this means installing a theme (we use the Railscast theme) and the relevant bundles for Rspec, Haml and Sass.
Custom Rake Tasks Railscast
Useful Rake Examples
Sample Rakefile from this article.
redis.rake from Resque.
If you have any more useful rake examples, please let me know and I'll add them here.
Photo Credits:
Shaker rake by dicktay2000 on Flickr.
Toy sampling megaphone by altemark on Flickr.
Delicious Digg This Post Facebook Reddit This Post
No related posts.
Thanks to a tip by Railscast's Ryan Bates , there's a pretty slick way to refer to, and combine, scope logic: the merge method, aliased as ‘&' . Let's look at how we can use scope#& to refer to the query logic of the Post.published scope from within our User.published scope:
Ruby - user.rb
class User ActiveRecord :: Base scope :published , lambda { joins ( :posts ) . group ( " users.id" ) & Post . published } end
Just …
Ryan Bates has a RailsCast out about using the deadweight gem to remove unused CSS from your apps.
Simon Tokumine writes about the different Ruby projects you can use to approximate GeoDjango in Rails.
GeoKit 1.5.0 has been released with fixed JRuby compatibility and some small additions.
Reek, the code smell detector, version 1.2.0 has been released. This release is Ruby 1.9 compatible …