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.
FactoryFactoryGirl
Hi guys, recently I created a gem called FactoryFactoryGirl. The mission of this gem is helping people generate their factory file more quickly. Check it out on github or my blog post!
Rolling Out the Redcarpet for Rendering Markdown
It’s the little things in an application that matter the most. But small details like rendering markdown can be tricky to figure out if you’ve never done it before. This blog post rolls out the redcarpet gem and walks through how to render markdown content in your application.
i18n-tasks v0.9.0.rc2
i18n-tasks, the gem that helps you find and manage missing and unused translations, has come a long way since its initial release 2 years ago. If you work on a multilingual project, check it out! If you already use the gem, please try the latest release candidate that adds an AST scanner and many features with it.
How to develop a social network using Rails?
A tutorial on developing a social networking platform using Ruby on Rails. Here is the Blog post and demo. And if you want to check out the source code https://github.com/sudharti/socify. Comments are welcome!
Prefer Header now available on rack with rack-prefer
We released a gem a month ago: parsing Prefer Header for rack with rack-prefer. Prefer header should be used mostly on APIs when client wants to pass options to the server. Check the RFC for more info and please don’t re-invent the wheel when building REST APIs, we already have pretty good RFCs on most things :)
Leading a Team at Ruby For Good
A little insight into what it’s like to lead a team at the annual hackathon/charity event/conference held at George Mason University:
Using lazy enumerators to work with large files in Ruby
Files are just large collections of lines or characters. Lazy enumerators make it possible to to some very interesting and powerful things with them. http://blog.honeybadger.io/using-lazy-enumerators-to-work-with-large-files-in-ruby/
On the Fly Image Processing in Ruby
I take a look at popular Ruby file upload gems and point out the problems of upfront image processing. Then I proceed to explain on the fly image processing and its advantages.
Running and Destroying with Rails
I’ve been developing with Rails for years, and only recently discovered the rails destroy command. Like magic, it allows you to undo a previous rails generate command, for example when you make a typo or forget a column when generating a model or scaffold. In this post I explain how to use rails destroy, as well as another lesser-known command, rails runner.
Untangle your Domain Model from the Database
Segregating your Domain model from the concerns of the database, by using the repository pattern built on top of your favourite Object-Relational Mapper
A Survey of Non-Rails Frameworks in Ruby: Cuba, Sinatra, Padrino, Lotus
Leigh Halliday shows the differences between the Ruby frameworks Cuba, Sinatra, Padrino, Lotus and Rails.
Efficient Redis Caching Through Hashing
Boost cache performance and memory consumption in Redis through cache sharding, an intelligent way to utilize the Hash type.
Building a payment form in Volt with Stripe-Opal gem (video)
In Episode 11, I build a book pre-order page using the Volt framework.
Why Rust? From a Rubyst point of view
I first heard of Rust from a coworker about 6 months ago while I was learning GO. My background in programming comes solely from learning Ruby, specifically Ruby on Rails. Read more
New Jekyll Starter Themes (Minimal, V2) For Classic Static Web Sites @ Planet Jekyll
Hello, I’ve put together two new static site (ready-to-fork) starter themes for “classic” web sites (e.g. just some web pages and not a blog with an archive and comments etc). The more “advanced” V2 starter theme includes: 1) Shared (common) template/page building blocks using _includes e.g. head.html, header.html, footer.html etc. 2) CSS preprocessing using Sass/SCSS e.g. _settings.scss with $link-color etc. 3) Nav(igation) menu (auto-)built using a configuration / data block; And more. Cheers.
PS: Looking for more themes? See the Dr. Jekyll’s Themes directory.
How Do I Deploy Discourse with Mina
I wrote blog post about Discourse deployment with Mina
How to Parse Upcoming Email in Rails Application
I’d like introduce an article: How to setup SendGrid Parse API and parse upcoming email in Rails application?
Celluloid, Nice To Meet you
I wrote a blog post about using Celluloid supervisors to keep a background task running, even if it raises exceptions. Read more
Using a Rails' Mail Interceptor to Test Email
I’m currently setting up a large number of emails as part of our Rails application. I like to run them through Email on Acid. However, this presents a problem in development as the images are hosted locally. I used an interceptor to rewrite the image paths. Read more
PS2Format gem, batch transfers made easy
Do you need to make bank batch transfers in Portugal for common things such as payroll? Check out PS2Format gem! Read more
Rails API Auth
Rails API Auth is a lightweight Rails Engine that implements the “Resource Owner Password Credentials Grant” OAuth 2.0 flow as well as Facebook authentication and is built for usage in API projects:
Use An Ask, Don’t Tell Policy With Ruby
Pat Shaughnessy explains how to set up code in Ruby so it states the solution to your problem, even if you don’t know what that solution is: Use an Ask, Don’t Tell Policy.
Benchmarking exceptions in Ruby – yep, they’re slow.
Just how much slower are exceptions than other flow control mechanisms? In this post we use a simple benchmark to find out. - http://blog.honeybadger.io/benchmarking-exceptions-in-ruby-yep-theyre-slow/
Do paid packages work?
A new audio podcast with special guest rubyist Mike Perham where we discuss his business of building packages, both paid and open source. Read more