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.
Everything You Need to Know About the New ActiveRecord API
Carl Lerche hosts Week 4 at Rails Dispatch: blog post and screencast on ActiveRelation, the new ActiveRecord API. Check it out! Also, be sure to take a peek at the new Q&A feature.
ubiquo 0.7.2 released
Now with full jruby support (including DB sequences), fixed integration problems with paperclip and thinking_sphinx along with some other bugfixing and minor improvements. Read the complete release notes
Rails 3 custom validators
I recently wrote a small post about creating your own custom validators for Rails 3 and how to package them as gems.
by_star: find AR objects by year, month, week and more
If you’re doing anything in your application where you need to find by dates / times you should give by_star a try.
Great list of Ruby on Rails Podcasts
I just set up a nice list of great ruby on rails podcasts for beginners.
Mac OSX users - meet "Dia".
Dia is a Ruby library for Mac OSX 10.5 and 10.6 users(Leopard and Snow Leopard). By using features exposed by the “sandbox” header on Leopard and Snow leopard you can create a sandbox environment for an application or block of ruby code. There are five different profiles(found on OSX) that change the sandbox environment. I’m running short on space; GitHub GemCutter
Radiant CMS 0.9.0 RC2 released
We’ve released RC2 of Radiant 0.9.0 and have some details about it on the Radiant blog. The big news is support for internationalization in the admin interface, support for extensions as gems, and other features.
bayes_motel
A multi-variate Bayesian classification engine in Ruby. Most popularly known for spam detection, Bayesian classification uses statistical methods to determine the proper category for a given document.
Should I Mock Kernel#exit?
Is it necessary to mock Kernel#exit to test a method that contains an exit? Here is another way to test an exit method (without mocking).
Remotely enable/disable Radiant sites
I’ve created the enabler extension to allow you to enable and disable a Radiant site remotely. [more inside]
RuleBook 0.2.1 Released! Can now set class rules!
I just updated rulebook to version 0.2.1 and it now has a new format for defining rules and has support for class methods! Check it out!
require 'dm-community' # An IRC Developer Q&A on May 6th
DataMapper will hold two developer Q&As May 6th in our IRC channel #datamapper on irc.freenode.org. Come learn what will be in DataMapper 1.0, ask your burning questions, or find out what DataMapper can do for you!
ice_cube 0.3.1 - Recurring Dates
I just released ice_cube 0.3.1. It provides an easy, semantic way to work with complex recurrence rules in Ruby. Check it out on github and see what its all about. The website and README provide some great examples to get you started. Thanks!
Rule.yearly.day(:friday).month_of_year(:october).day_of_month(13)
open_exception gem - auto open busted code
I just released the open_exception gem for auto-opening code in your editor when an exception occurs.
Cinch: The IRC Microframework version 0.2
Since 0.1 was released only yesterday, there has been strong interest. Here’s 0.2 already, supporting named parameter types! Check out the example of how to use this feature here. With new types being added soon. [more inside]
Markupslicer - Slice your HTML/CSS markup into Ruby on Rails templates.
We just launched MarkupSlicer - an Free Rails application to slice your HTML/CSS markup into Ruby on Rails layouts, templates and partials. Supports ERB and HAML for now, vote on site for more formats. Free and kinda fun. Go play with demo project and tell us how you like it.
Haml/Sass 3 RC 1 Released
The first release candidate of Haml/Sass 3 is now out, bringing with it nicer multiline Ruby for Haml and powerful selector inheritance for Sass.
business_time gem Released
I recently launched my business_time gem for doing date math with business hours, weekends, and holidays. This blog entry shows the usage.
Tag your gem sources with thor-ctags
I just wrote a small thor-ctags script to use ctags a bit easier with multiple gems.
IRCSocket - an IRC wrapper for TCPSocket
irc-socket is an extremely small and simple IRC wrapper for TCPSocket. It follows the guidelines laid out in RFC 2812 and provides methods to interact with an IRC server. The code is available on GitHub and API documentation is available here, as well as a post about it here Contributions welcome!
Restful Authentication for Rails 3
I am trying to upgrade Restful Authentication plugin for Rails 3. Here are some of my notes.
Apply rules to your classes
I just launched rulebook which allows you to define ‘rules’ or dynamic methods to your classes.
Popular Ruby web framework benchmarks!
The Padrino Team was frequently asked about how our framework stacks up ‘speed-wise’ to existing alternatives. Even though we are not benchmark fans (usually too misleading), we pitted the major ruby frameworks against each other in three key benchmark tests. The benchmark implementation and results are available at the benchmark github repo. Please help us improve these if you can!