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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
In Rails, it’s easy to get a bunch of records from your database if you have their IDs. But what if you wanted to get the records back in a specific order? Maybe your search engine returns the most relevant IDs first. How do you keep your records in that order?
This is an introductory post about a following video series that we’re trying to build. The plan is to record a video tutorial on a small project for capturing form data (as a service). The purpose of this post is to gather some feedback pre-release so we can build a better video series. Share your thoughts!
Hello, I’ve started yet another awesome collection on GitHub. What’s news? The awesome-events repo collects Ruby events (meetups, conferences, camps, etc.) from around the world. I’m from Austria, thus, I’ve started w/ Central Europe. New events, meetup, camps, conferences, and more welcome. Cheers.
The most comprehensive test suite is nothing without the appropriate amount – and type – of test data to support it. The
factory_girl gem is one of the most efficient and painless ways of creating test data within a Rails app. This post explains how to effectively make use of FactoryGirl in your application, and which bugs you should avoid along the way.
I wrote about some ideas from Patterns of Software by Richard Gabriel on my blog. Sometimes we move things into their own methods too soon when tighter locality with the related code helps us see problems.
A list of tools to measure the page load time and its optimization: https://netguru.co/blog/speed-page-load-owners-developers
Capistrano is a well-known tool for deploying your code. But what fewer people know is that you can also use it for performing additional tasks on your server. - https://intercityup.com/blog/useful-capistrano-plugins.html
This is the third part of the DIY CPU Profiler blog series from Codemancers, the folks behind Rbkit Ruby profiler. This part is about how to build a very rudimentary Instrumentation profiler for Ruby
Hello, over at the Planet Ruby the Gem of the Week series continues with #16 - tilt - that lets you build your own micro web framework in less than 33 lines of code (inspired by Konstantin Haase’s Almost Sinatra hack). Full article. Cheers.
Pete Keen has a great article on handling purchases so they happen once and only once with Stripe