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.
Screencast on file random access
The Changelog blog is hosting a video I did on using #seek and #tell to navigate files. It’s the beginning of a series on cloning the UNIX tail(1) command in Ruby.
Rails Login Security
I just published an article on Rails login security. It describes a login flow that uses CAPTCHA in a combination with the Devise lockable module to deliver a painless yet secure sign in experience for your users.
Ruby Quick Tip: Setting Variables Inside Array & Hash Literals
Did you know that you can assign variables inside Ruby’s array and hash literals?
Homecoming: Easy upwards directory traversal
Homecoming let’s you easily traverse all parent directories and search for a given file. This comes in handy when searching for a config file with settings that can be overridden by the same config file in a lower level directory (a popular example being .gitignore).
Rails Testing Antipatterns: Models
The biggest issues with model tests are usually a reflection of application design.
Bower + Rails on Heroku
Article on how to connect Bower + Rails and then run everything on Heroku.
AngularJS templates and Ruby on Rails assets pipeline
I just published a blog post about integrating AngularJS templates and Rails assets pipeline.
beer.db - 1000+ Beers, 1000+ Breweries, 10+ Countries, New Multi-Line Record Format and More
Hello, I’ve updated the plain text beer.db fixtures now including more than 1000+ beers, 1000+ breweries, 10+ countries. Use the beerdb gem to load the free open public domain data into your SQL database of choice. More info. Cheers. Prost.
Contract tests in Ruby
Today I decide to share my experience and thoughts about contract tests in ruby and how we could make our test suite faster - Contract tests
Getting to Know the Ruby Standard Library
I’ve just republished an old series that was languishing on my defunct wordpress blog. If you’re curious about how pieces of the ruby standard library work, take a look. [more inside]
The Huffman gem
Compress and encode a text using the Huffman encoding compression algorithm : The Huffman gem on github
Practical example of dependency injection in Ruby
Simple practical example with explanation on how and why to do dependency injection in Ruby.
On-the-fly image manipulations secured with signed URLs
A new blog post explains how you can benefit from the flexibility of dynamic URLs for cloud-based on-the-fly image fetching and manipulation. Sign the URLs to secure your images and control which images may be accessed and what manipulations will be used. Ruby sample code included.
RSpec: be true & be_true Are Different!
RSpec’s be true and be_true look deceptively similar. In fact, their naming suggests that they might be synonyms for the same assertion. Can the two clauses be used interchangeably to produce the same effect?
RubyInfo Gem
The ruby_info gem provides a RubyInfo class that contains a lot of information about your current Ruby environment. Also, the source file is a good place to learn about the various global variables and constants that have special values.
ActiveModel integrations for Elasticsearch
Check out a pre-release version of ActiveModel/Record and Ruby on Rails integrations for Elasticsearch at https://github.com/elasticsearch/elasticsearch-rails. [more inside]
Ruby Print Debugging
I just released some colorful print debugging helpers. Simple, but useful.
Railsconf b>2014/b> (Chicago, IL) is open for registrations, proposals and sponsorships.
Railsconf 2014 will be held in Chicago, IL, April 22-25 2014. [more inside]
Learn to make an app in RubyMotion that uses the camera, you could do this right now
Episode 7 of MotionInMotion just came out, where you’re shown how to make an app called KeyHook, that lets you use the camera on your iPhone to remember where you left your keys, all in Ruby! It’s a simple episode, and easy to follow along. Create a RubyMotion app and show it off to your friends.
Paths aren't strings
People often represent filesystem paths as strings in Ruby. But there’s a better option, and it comes as part of the standard library: Pathname. Let’s take a look at why it’s better.
Test-Driven Rails Screencasts; an alternative to Ryan Bates' Railscasts.
Build a Rails 4 app from start to finish, using TDD. A Video
Using RSpec to test your systems installations
Check out my blog post about using RSpec to test a system installation.
Event sourcing in ruby.
I’m writing a series of post about a possible implementation of Event Sourcing in ruby. The series starts here with the introduction. I already wrote 5 part that you can easily find on the blog: ema.codiceplastico.com
A simple list of Ruby conferences
Ruby Conferences is a simple list of Ruby-specific conferences, published collaboratively with the community. There you’ll find event dates, location, CFP and Registration information.