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.
Compass, SASS, and 960 Grid
I just released a video detailing how to get set up with Compass, SASS, and the 960 grid system. It also goes into some of the workings of SASS. SASS is a super handy way of writing stylesheets.
Apotomo 1.1.1
We’ve just released apotomo 1.1.1, about some of the changes..you can now manipulate your apotomo widgets with simpler event bubling More examples and exercises are comming soon :)
A further look into Code highlighting
This time I use Coderay as the code highlighter, I don’t go into much detail on that itself but delve into monkey patching and highline and throw in a heredoc also. Read more
rails_best_practices 0.7.4 released
rails_best_practices 0.7.4 released, it brings SchemaPrepare, which makes reviews more accurate, see more here.
my experience to upgrade mongoid
I have written a serial of posts to introduce my experience how to upgrade mongoid from 2.0.0.beta.19 to 2.0.0.rc.7, check them out here.
Taking Stock of JRuby Web Servers
Nick Sieger’s blog post on JRuby web servers helps you decide which server to use to build and deploy your app.
Mneme: Scalable Duplicate Filtering Service (HTTP, Ruby, Redis)
Mneme is an HTTP web-service for recording and identifying previously seen records - aka, duplicate detection. It is powered by Goliath, Redis, and a collection of bloomfilters under the hood. Check out the source on github.
Redis and Rails Guide
A guide of sort on Using Redis with Ruby on Rails
Generate MP3 waveforms with Ruby and R
I used Ruby and R to generate a waveform from an MP3 file to count the number of beeps in the Singapore MRT’s “door closing” warning.
Hello, Lunchy!
Lunchy is a friendy wrapper for OSX’s launchctl, making it easier to start and stop your Homebrew or MacPorts daemons.
MacRuby 0.10 Released
Laurent Sansonetti has released MacRuby 0.10, the latest version of the Mac OS X-focused Ruby implementation. 0.10 is the latest stepping stone on the way to a forthcoming 1.0 release and includes XCode 4 support and an improved macruby_deploy system.
Using Solr and Sunspot to Search Within Words
Following our series on Solr/Sunspot I wrote a blog post showing how you can configure Solr and Sunspot to search within a word. Such as searching for “Awe” within “Awesome”.
Message Expectations on methods that receive multiple messages with RSpec
I just posted this tip which shows a method to avoid MockExpectation errors when specifying methods that are called multiple times within execution. Check it out!
Another Cool Reason Ruby is Slow: implicit super
Some close details of implicit super reveal another example where Ruby is more flexible at the expense of easy optimizations.
A voting extension from scratch for Rails 3 (blog series)
I just started a blog series about building a voting extension from scratch for Rails 3. There will be presumably seven posts in this series. The main focus while putting this gem together will be on current best practices (using Bundler, setting up RSpec, inheriting from ActiveSupport::Concern, setting up generators, …). Here is part 1 - overview and setup. The complete code and installable gem is already available at the make_voteable GitHub repository.
Showing Passenger Stats From Inside Your App
How to show how many active or idle Passenger processes your server has and display them inside your app
Selenium in headless with Xvbf and Ruby
The article describes how to set selenium under headless state with Xvbf and Ruby.
MiniBacktrace - For MiniTest & Rails
MiniBacktrace allows you to take advantage of the Rails.backtrace_cleaner when using MiniTest. This includes everyone using Rails 3 with Ruby 1.9. Just add ‘mini_backtrace’ to your Gemfile’s :test group and your should automatically see a huge difference. Any additions to the Rails.backtrace_cleaner should now work.
Object-oriented CSS Heuristics for Programmers
Creating coherent and cohesive CSS is hard. What starts out as elegant often ends up crufty, with a mixing of conventions, loads of duplication and unused styles as the app grows. Read more
A quick look at the annotate gem - Annot...
A quick look at the annotate gem - Annotate Your Models With The Annotate Gem. A great way to give yourself visibility of the properties on your model without having to refer to the schema.rb or object attributes.
MacRuby for the Desktop
Why you should start hacking on MacRuby for desktop applications now.
Rubinius on AppCloud in Alpha
Evan Phoenix announces Rubinius on AppCloud, now available in alpha.
Fixing NGINX Content-Length Header Bug Using Rack
I recently ran into an issue with early versions of NGINX not setting the Content-Length header for 201 responses. I fixed the bug using Rack.
CarrierWave version 0.5.3 released
I’m very happy to release CarrierWave version 0.5.3. It features a new fog storage provider written by @geemus, author of the fog gem. It seamlessly supports Amazon S3, Rackspace Cloud Files, and Google Storage for Developers. There are plenty of other bug fixes and improvements from lots of contributors new and old. You can read the full release notes here. Feedback on this new storage provider is definitely welcome. Enjoy!
Shelltoad - command line interface for your Hoptoad errors
Shelltoad is a command line tool which simplifies your working pipeline with Hoptoad service. It allows to view all exceptions from shell and also provides basic git integration.