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.
How to setup free stage for your open source project
Teatro is now more friendly for open source maintainers since it does not asks for repo access anymore for public repos. More info here http://blog.teatro.io/how-to-setup-free-stage-for-your-open-source-project/ [more inside]
Chef Basics for Rails Developers
Heard of Chef but never tried it? We wrote a step by step tutorial on how to the steps to set up a deployment process with Chef for your Rails project. Check it out! [more inside]
Ruby & Rails: Making sure rake task won’t slow the site down
If you don’t have multiple cores and/or you have a small VPN, you may end up with a huge slow down of your web app, when rake tasks are executed. This can be a big issue especially when you use something like whenever to perform periodic tasks. Luckily there’s a nice. You can read more about how to use it here: Ruby & Rails: Making sure rake task won’t slow the site down
Write Reliable, Asynchronous Integration Tests With Capybara
Integration tests involving Ruby and JavaScript are fraught with danger. Developers frequently complain of tests which fail erratically. It is possible to write reliable, asynchronous integration tests with Capybara by understanding how Capybara, Ruby, background processes, threads, processes and Capybara drivers such as Selenium, Capybara Webkit, and Poltergeist work, and by following some easy-to-remember guidelines.
Gathering Additional Profile Attributes Using Devise
The fantastic Devise authentication gem asks registering users for just two items: an e-mail address and password. Chances are you’ll want to subsequently gather additional details, such as the user’s name or location, typically done through an account profile management form. In this post I show you how this is accomplished.
Floating Point and currency
Why using floating point may be a bad idea when it comes to currency handling and what are the alternatives.
Guide to upgrade to Rails 4.1.5
Are you planning to finally bump your app to the Rails 4.1? Then check out my blog post about that. Now with tips about rails 4.1.5!
Ruby String Magic
If you want to master Ruby, you should know strings very well. Follow @RubyStrings to learn about all the details!
Hosting RabbitMQ Consumer Processes using any Rack based framework (e.g. Sinatra)
Introducing RackRabbit - a server that allows you to write your RabbitMQ consumer processes using any Rack compliant framework and load balance multiple instances using a Unicorn-style forking server.
DNSdeploy - Continuous Deployment of DNS Records
How to set up Continuous Deployment of DNS Records with the help of DNSimple and tools you already use and are familiar with. [more inside]
Styling HTML emails with Rails and Roadie
I’ve put up a post with the process of applying HTML styles to mailers in Ruby on Rails using HTML Email Boilerplate and Roadie. Check it out at CookiesHQ blog.
Using test fixtures with CarrierWave
After being asked about how to use Fixtures in CarrierWave (the Rails file uploader), I wrote an article about how I’d do it.
Rails 5, Module#prepend, and the end of `alias_method_chain`
The Rails 4.2 announcement had some interesting news about the upcoming Rails 5: It’s probably going to require Ruby 2.2. Which will make it the first Rails version to take advantage of all the good stuff from Ruby 2. The post mentioned garbage collected symbols and keyword arguments. But to me, one of the most interesting Ruby 2 features is Module#prepend.
Ruby - the bad parts
Kamil Bielawski, one of our Ruby developers, decided to write a follow-up to his previous post, this time about bad parts of Ruby. Do you agree with his picks?
A quick guide to peer code review (and why you should do it)
Seems like everyone knows that code review is a valuable tool but a lot of teams struggle with implementing it because of the overhead they feel they just can’t afford right now. Here’s why you should do it!.
Apphera API now open source
I just launched Apphera Core, which is the main API for our open source social media monitoring and engagement. Have fun checking it out.
Sinatra Cookbook nearly here
As some of you may remember I had a Kickstarter campaign last year to fund the writing of Sintara Cookbook, however I got delayed and not made as much progress as planned, but this week will be lauching the first 8 chapters to buy and sending these to kickstarter backers too. [more inside]
Green Ruby News #83
Bunch of links collected for the first week of september: http://greenruby.org/grn-083.html.
football.db - More New 2014/15 Seasons - HTTP JSON API for Champions League, La Liga, Serie A, etc.
Hello, The plain text football fixtures for leagues, teams, match schedules, and more that you can read with the sportdb gem into your SQL database of choice (e.g. rake build DATA=es) now includes more 2014/15 seasons e.g. the European Champions League, the Spanish Primera División, the Italian Serie A, and more. Or try the HTTP JSON API e.g. event/cl.2014_15/teams or event/cl.2014_15/round/1 and so on or better build your own HTTP JSON API using the starter kit. All data, code and samples public domain. Enjoy. Cheers.
Find next / previous Active Record(s) in one query
order_query finds next or previous records relative to the current one efficiently, using techniques popularized by Markus Winand. Version 0.1.3 just came out with several performance improvements. Read more on Github.
Service Oriented Architecture using HTTP vs AMQP
I published a series of articles about Service Oriented Architecture - discussing the choice between SOA using HTTP vs using a message broker like RabbitMQ. Hopefully useful to those of you thinking about ways to break up your monolithic Rails application.
New Features in Rails 4.2
I have highlighted few features of Rails 4.2 in a blog post. Have a look.
Coping with an Inferiority Complex
I just published a blog post on dealing with my inferiority complex http://dennismonsewicz.com/post/96510058290/inferiority-complex [more inside]
Use your MongoDB document _id as your created_at timestamp for date range queries
In case you didn’t know, you can use your MongoDB document _id field for date range queries instead of having to use a separate created_at field and create a separate index for it. Here’s how simple it is to do it.
Tutorial Series to Set up Rails and Foundation
After we wrote the tutorial series to set up Bootstrap and Rails, we got a few requests to write a series for setting up Zurb Foundation on a Rails app. And… here they are! [more inside]