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.
The Law of Demeter
I wrote a blog post explaining the Law of Demeter with a simple example in Ruby.
Football Data - 10+ Leagues (Premier League, Bundesliga, ..) 10+ Seasons - Plain Text (CSV) Fixtures
Hello, Using a Ruby build script (that is, Rakefile) I’ve built up a GitHub org, that is, football.csv - for open football data in the CSV (comma-separated values) format, that is, plain old text. Leagues include the English Premier League, Championship, Bundesliga, Eredivisie, Süper Lig, Primera División, Pro League etc. for 10+ seasons (e.g. 2013/14-1993/94). Cheers.
Understanding Timeout in CRuby
I wrote a blogpost on Timeout Internals for CRuby to help people understand when it works and when it doesnt.
A Detailed Guide on How to Work with Ajax on Rails
We wrote a blog post on how to work with Ajax on Rails. If you are beginning to build Rails apps you may be surprised how easy it is to get this going. [more inside]
Detecting Trial Dates in Ruby
I wrote a small tutorial about how to create and calculate trial periods in Ruby.
Rails tips: #with_options
One of ActiveSupport’s useful methods, #with_options allows you to DRY out hashes passed to a collection of similar method calls - ideal for complicated has_many declarations. Read more on the Cookies HQ blog
The new HTML sanitizer in Rails 4.2
Learn how the Rails HTML sanitizer was revamped using Loofah and how t will look like in Rails 4.2. [more inside]
It’s Ruby, it’s Rails, it’s programming, it’s databases, it’s The Vibe
This week/s I have been mostly struggling with an outage in our primary care giver, realizing that my family is not really highly available and has no real disaster recovery plan. Roll on Spring, I say after a hard month of Sickness as a Service. I also went to the Docker meetup in Melbourne, which was excellent. Docker. So hot right now. Read the rest of the Vibe
Mustache 0.99.6 released
Version 0.99.6 of Mustache has just been pushed to Rubygems. [more inside]
Hidden features of Ruby you may not know about
Ruby is a fantastic language. Even when you think, you know all about it, you discover new ways of making your code more elegant. We’ve prepared a list of such features: [more inside]
How to automatically adapt website images to Retina and HiDPI devices
This article details how you can easily and automatically scale your website images to the resolution most appropriate to your viewers mobile devices or screen pixel density. Code samples included for Ruby on Rails and jQuery.
Ruby on Rails Web Development Company
To widen the scale of your business and get the advanced Ruby on Rails web development solutions, CSSChopper is the best company. Our emerging RoR development solutions aid you to achieve your diverse challenging business goals successfully. For more details, visit: http://www.csschopper.com/ruby-on-rails-development.shtml
Ruby on Rails Application Examples
I put together a list of interesting applications built with Ruby on Rails.
Multi-tenancy in Rails
A helpful post on Multi-tenancy in Rails by Allerin [more inside]
We've Partnered With Heroku for the 2014 Rails Rumble!
We’re thrilled to announce that we’ve partnered with Heroku for the 2014 Rails Rumble! Read all about this and our other announcements on our blog.
First-Class Failure
I just posted a technique for handling failure when doing things like importing third-party data or generating reports.
A guide to learning from outdated resources
The Rails ecosystem moves fast, way too fast for print. If you’re like me, you want to learn the most recent version of your frameworks and gems. But the best resources are often a few versions behind. Once you build experience with an older version of a gem, how do you get caught up?
Tracking Sidekiq workers exceptions with Errbit/Airbrake
A quick hint for all those that think that it comes by default with Errbit/Airbrake. Tracking Sidekiq workers exceptions with Errbit/Airbrake
Connascence and Ruby 2 Keyword Arguments
When one Ruby method has to know the correct order of another method’s positional arguments, we end up with connascence of position. Ruby 2 Keyword Arguments help us reduce connascence, but there are some edge cases to be aware of.
Go, Ruby & SSE
I just launched Gorsse an experimental tool that allows you to use Server Sent Events in your Ruby web applications without any changes in your usual webserver. The tool relies on Go to handle many concurrent and persistent connections and communication is achieved through ZeroMQ.
Get to Know a Gem: 'Main' Chapter 1
Post looking into Ara Howard’s excellent gem Main. Check it out here
Button Loading Animations with jQuery UJS
I just released a new screencast on how to set up Button Loading Animations with jQuery UJS. Rails makes it super easy to add a spinner to your forms by just adding the disable_with data attribute. Hope you enjoy it!
Blogpost about pundit > cancan, first part.
If you like to read about why in our company we belive that pundit is a way better solution for compliacted authorization features than cancan (or cancancan for rails > 4.0) i have a first part of my blogpost for you : some groovy thing