The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Domain Driven Design for Rails Developers.
Working on large rails applications I’ve noticed that in many ways Domain Driven Design and Rails contradict each other. Therefore, I’ve decided to write a short series of articles, which will be my attempt to reconcile both paradigms and to find a way to use DDD while not fighting Rails. Read more.
Ruby's catch/throw, goto's little brother
Pat Shaughnessy showed us how to enable __goto__ for Ruby 1.9, but goto’s little brother catch and throw have been there all along.
Haml and Rails
I’ve updated my guide to Haml and Rails with some helpful suggestions from Brook Riggio’s blog post on Haml by Default in a New Rails 3.2 App. The RailsApps application templates now include a haml-html5 template offering you a choice of Haml or ERB, with options for a CSS front-end framework such as Twitter Bootstrap (Less or Sass), and a default application layout using HTML5 (see the article HTML5 Boilerplate for Rails Developers). It creates a simple starter app using Haml and HTML5.
Rubydeps 0.9.0.pre released
Rubydeps is a tool that uses graphviz to show a dependency graph of your project classes based on its tests. I think this is more useful than static analysis of the code base because of the high dynamic aspects of the language. Read more
RVM workflow for a new Rails App
I wrote a new post at Rake Routes: RVM workflow for a new Rails app.
Global Hack Day #2 is Today! (March 8th)
Mendicant University is now hosting monthly online hackfests open to all programmers. Today (March 8) we’ll be running our second event, from 19:00 - 03:00 UTC. If you have your own project you want to work on, or wouldn’t mind helping others with theirs, please catch up with us in the #mendicant channel on Freenode. For more details, see this announcement and this wiki page.
Dust.js support for the Rails asset pipeline
Me and my fellow partners, have been playing around with dust.js in one of our projects, we looked for the existing gems for using dust.js with the Rails asset pipeline with almost no luck.Then, Hopeless we decided to write dust_assets Read more
When you Really, Truly, Need to Parameterize your Cucumber
You may find a time when you need to parameterize a Cucumber feature, or embed a wee bit of ERB. Here’s how to do it (with warnings).
Maximum Modularity with Cells and Rails Engines
Cells + Engines bring real reusability to Rails. And it’s soo easy to distribute your cells between different projects.
AJAX Pagination v0.4.0: And some powerful new features
I just released AJAX Pagination v0.4.0. This gem helps you use AJAX to load new content into div sections. Read more
Tunnels has been released - A solution to run the Pow over SSL
I have released Tunnels. This is a proxy to http from https. By using this, you can run the Pow over SSL!
rails_best_practices 1.9.0 released
I just released rails_best_practices 1.9.0, it adds “protect mass assignment” check, helps you avoid being hacked like github, check out the changelog here
DockYard's continuous integration setup
Dan Seaver blogged about our Jenkins setup, we have it working well with capybara-webkit on our CI server.
Resources for learning Ruby, Rails, and Programming
At Rake Routes, I’ve written a list of resources to reference for learning Ruby, Rails, and general programming.
Learning Test Strategy: BDD the Unknown
I blogged about a helpful testing strategy for dealing with unknown external library code on Iora Health’s blog Intensive Code Unit
A short summary of the mass assignment vulnerability
You may have heard the news about github being hacked and the associated hype around the mass assignment vulnerability. In case you missed it: my new blog post Secure your Rails apps! tries to summarize what was going on, what this vulnerability is and how to protect against it.
Announcing RocketPants
We’ve just released the first public version of RocketPants, a set of tools built on top of ActionController to make building reasonably designed API-specific portions of your applications a little bit easier.
sudo_attributes: Override ActiveRecord protected attributes with ease
With the recent buzz over Github’s mass-assignment security vulnerability, I thought some people might find my sudo_attributes gem useful. It provides a simple API for overriding protected ActiveRecord attributes while not interfering with existing behavior. It is useful in the parts of your application that are not exposed to mass-assignment from external, unfiltered sources. Read more
Zonebie: Random Timezones in your Rails Tests
Highgroove just released the zonebie gem: it runs your Rails/ActiveSupport tests in a random timezone to prevent bugs where code wrongly depends on a certain zone being set.
Ruby on REST 4: Using Representers in Rails
The fourth post in the “Ruby On REST” series explains how the roar-rails gem helps using Roar’s representers in Rails REST services. Following the fruit and bowl example it discusses how to parse and render REST documents in a Rails environment.
method_profiler: Find slow methods in your Ruby code
MethodProfiler collects performance information about the methods in your objects and creates reports to help you identify slow methods. The collected data can be sorted in various ways, converted into an array, or pretty printed as a table.
Semaphore is looking for beta testers
Semaphore, a new continuous integration app for Rails projects, is looking for beta testers. It can import any GitHub repository, while the set up & build process is made completely automatic.
Javascript - Really Awesome Tests Simply
I just finished a blogpost about some of my js testing project and how to use them in a straight forward way.