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.
Padrino (Web Framework) 0.12.0 Released!
We are excited to announce the 0.12.0 release of our Sinatra-powered framework! With support for Ruby 2.1, a smarter rendering engine, enhanced template support, a rewritten reloader, a more powerful cache store and more, this marks an exciting time for the Padrino community. If you are a Rails developer or have worked with Sinatra, we invite you to check out how Padrino is the perfect complement to Sinatra. Check out the upgrade guide to migrate your project from an older version.
How do rubygems work anyway?
One of the things that makes working with Rails so nice is that for any common programming need—authorization, site administration, ecommerce, you name it—someone smarter than you has likely coded up the solution for your problem and packaged it up in the form of a gem. Read More
Beauty of CofeeScript
Posted a blog about some beautiful code syntax in CoffeeScript Beauty of CofeeScript
Puppet custom types the easy way (part 2)
Check out this blog post. This is the second part of a series series introducing easy_type. A library designed to make it easy to create Puppet Custom Types.
binding.repl v1.0.0 released
binding.repl is a project to start a number of different ruby consoles(pry, irb, ripl, and rib) at runtime. a console or repl can be started through binding.repl.irb (for IRB) or through automatic discovery at runtime. v1.0.0 feels like a good release to announce.
v1.0.0 ChangeLog.txt
project homepage
rubygem: gem install binding.repl
Japanese translation of Everyday Rails Testing with RSpec now available
I’m happy to tell you that Everyday Rails Testing with RSpec has been translated to Japanese and is now available on Leanpub. The team of translators has worked hard over the past several weeks to not only deliver this edition for Japanese-reading audiences, but also help me make the English version better by making several suggestions. For their efforts, they will receive 100% of the book royalties for the Japanese version. [more inside]
Routing helpers with Lotus
Watch me during a short TDD session, while I create routing helpers with Lotus. [more inside]
Testing dynamic pages with Ruby and Page-Object
A simple strategy to test HTML pages with some dynamic content. Test dynamic pages with Ruby and Page Object
my_program.output.should
I happened to assert program output with rspec, and I wrote a nice helper.
Setup Rails 4.1, Spring, Rspec, and Guard
I wrote up simple instructions for setting up a new or upgraded Rails 4.1 app to use the Spring application launcher, Rspec, and Guard together, something I couldn’t find in a single place yet.
orats - An opinionated set of rails application templates
Quickly setup new rails projects using best practices provided by pre-written application templates. [more inside]
Sugarcane 0.0.1 released
sugarcane is an improved version of cane with a menu that takes you straight from violations to lines in a text editor. [more inside]
Page Specific Javascript in Rails
Adding page specific Javascript to a Rails application is surprisingly complex if you want to minimize the number of requests to the server. I wrote a post about adding page specific Javascript to a Rails application without an additional server request.
Tenancy v1.0.0 nows support mongoid 3/4
I just released tenancy v1.0.0. It is a simple multitenancy with activerecord (3/4) through scoping, and now it supports mongoid 3/4.
ActiveRecord Random Ordering with Pagination
I wrote a post about getting a random set of records that can be paginated with ActiveRecord. Includes mySQL and PostgreSQL implementations.
Token Based Authentication in Rails
I wrote a blog post on implementing Token Based Authentication in Rails. The post talks about its benefits over Basic Auth and Digest, and how Rails supports it out of the box.
Kata 1.3.3 Released
After some time away I have updated the kata gem to fix a couple of lingering bugs. Github integration should work properly now. Have a look at the wiki for complete information on what the gem provides and how to use it to improve your ruby programming skills. There is also this nice blog post by Michael Hoffman documenting how he uses it.
RubySec Summary of CVE-2013-6393 aka "you're probably vulnerable"
Recently, it was disclosed that libyaml <= 0.1.4 is vulnerable to a heap overflow. libyaml is used by Ruby’s Psych YAML parser, which ships with Ruby >= 1.9.2 and was made the default YAML parser in Ruby 1.9.3. Find out if you are vulnerable and how to upgrade libyaml.
Back to Basics: HTTP Requests in Rails Apps
This article breaks down an HTTP request into its parts, shows how HTTP is leveraged in Rails apps, and how Ajax requests are logged.
Active Record Migrations on Tables Leveraging STI
Heads up and solution to a potential gotcha’ when writing migrations on STI models.
Fighting Paperclip Errno::ENOMEM Error
I wrote a blog post on fighting Paperclip Errno::ENOMEM error. Check this out if your logs scream “Cannot allocate memory”
A list of deprecated stuff in Ruby (as of 2.1)
I wrote a short overview of deprecated stuff in Ruby (as of 2.1). Hopefully some people will find it useful.