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.
Nuts & Bolts #1: Create a simple Jekyll-like blog in your Rails 4 app
When I needed a blog system for my company blog, I had a hard time deciding if I should use Jekyll, another Rails blog engine or just build a simple blog functionality on my own. I implemented my own, see why and how I did it. [more inside]
Introduction to PostGIS and Rails - Part 2
Rob just wrote a very useful piece, specially if you’re looking for an intro on PostGIS and geolocation.Read it on the CookiesHQ blog and let us know what you think.
Analytics Option in Rails Composer
Now, when you build a Rails starter application with Rails Composer, you get the option of page-view tracking with either Google Analytics or Segment.io (see a blog post for details). My article on Analytics for Rails explains everything Rails Composer adds, so there is no mystery code. Thanks to RailsApps subscribers for their project support.
Most Common Mistakes On Legacy Rails Apps
Lately I’ve been supporting several legacy projects. [more inside]
When using an API goes terribly wrong
API docs will tell you how to use an API. But when things go wrong, you can be left on your own. Error messages are often incomplete, misleading, or unhelpful. And what are you supposed to do with NoMethodError: undefined method '[]' for nil:NilClass, anyway? When you learn an API, framework, or library, you can’t just learn how to use it when things go well. You also need to figure out what to do when it hands an error back.
The ultimate list of Ruby / Rails resources
Ruby on Rails is so popular, that there are merely thousands of good sources of how to learn it. You can choose if you prefer online courses, video courses, live courses, tutorials, blog posts, books, screencats, podcasts or another way. You can learn Ruby and then Rails, you can learn both together, you can even learn only Rails without knowing much about the underlying language. So why write another article about it? I am offering you a very full list of resources, which will help you to find the right way of learning that fits your needs. Continue reading →
Rails 4 and PostgreSQL Arrays
Bernardo Chaves from Plataformatec talks about how Rails treats PostgreSQL’s array type, and how to use PL/pgSQL custom functions to do unique validations in PostgreSQL arrays. [more inside]
bhf Rails-Engine-Gem that offers an admin interface
I just launched bhf. A simple to use Rails-Engine-Gem that offers an admin interface for trusted user. Easy integratable, highly configurable and agnostic. Works with ActiveRecord and Mongoid. It’s an interesting alternative for ActiveAdmin with a slick user interface.
Update your Rubygems automatically
Starting from this week, Gemnasium can update the dependencies of your project automatically. It is now easier than ever to keep your Ruby project in shape by getting rid of the outdated dependencies. Read more
Code style matters
Are you using some guidelines in your project? If not, read how important is code syle.
The first Ruby on Rails in Asia - RailsPacific
The first ever Ruby on Rails Conference in Asia - RailsPacific. ( one day conference, one day workshop ) [more inside]
Snapzu - New Place to Share Latest News About Ruby
I’ve created ruby tribe on Snapzu. You can post here some blog articles, projects, tools related to Ruby. Snapzu is site similar to Reddit, where users can send stories and votes on them.
Create a Rails app in 90 Seconds (Design, Features, Models included)
In August Drystorm.co will be launching with the aim of speeding up Rails app creation. [more inside]
factbook gem - Turn World Factbook Public Domain Country Profiles into Open Data (e.g JSON)
Hello, I’ve put together a factbook gem that lets you read in World Factbook country profile pages (in HTML) and returns a structured Ruby hash that you can save, for example, as a pretty printed JSON file e.g. For Brazil use: Factbook::Page.new( 'br' ).to_json Find ready-to-use country profile in JSON in the openmundi/factbook.json repo. Thanks to the CIA for the great service (and public domain data - no rights reserved, no copyright). Cheers.
Search & autocomplete with Sunspot, Solr and Twitter Typeahead.js (Part #2)
The integration of Sunspot and typeahead.js comes in Part 2
Finally! *Truly* random numbers in Ruby!
If you know much about computer science, you know that the best we’ve been able to do is pseudorandom number generation… until now! Check out the new fair_dice_roll gem for when true randomness matters.
Cucumber rake runner
cucumber_rake_runner is a simple gem allowing you to run rake tasks inline to the current cucumber process for testing behavior and output. For Jruby users this also eliminates the need to spin up a new JVM per rake task significantly reducing test run time. The gem captures both stdout, stderr along with the time taken to execute a rake task so that assertions can be made easily against them in your cucumber test suite.
The Vibe is Go! What's happening in Rails, programming and general awesomeness.
This week I have mostly been thinking about Go. I won’t bore you with the details. Unless you ask me. Continue your dosage of the vibe
Gitlab Backup Made Easy
Gitlab is a self hosted open source repository management tool built on Ruby on Rails. It offers a variety of features like code reviews, merge requests and activity hooks. It’s the perfect tool for companies that do not want to rely on third parties to manage their code. But, with self hosting comes the added risk of server failure and data loss. [more inside]
How to convert Ruby source code to PDF in Linux
In little example I want to show you how to convert part of Sinatra source code to pdf using Linux operating system.
TDD Antipatterns: Local Hero
Unmet data or configuration dependencies are a frequent cause of unexpected test failures, followed by long debugging. This post discusses a few examples.