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.
We discuss Methods, Arguments and Method Arguments (Beginner) - Codemy
In this episode we talk about arguments, methods and method arguments
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.
Eager loading in Rails
Eager loading is a way to find objects of a certain class and a number of named associations. Here I share a post on using it with Rails. Check out: Eager loading in Rails
Battling Complexity in Ruby
New article by Coraline Ada Ehmke (@Bantik) on the challenge of battling complexity in Ruby and a new solution: Fukuzatsu.
Rails 4 is faster than Django 1.7 in creating a web app
I created a simple web app using Rails 4 and Django 1.7. Rails took less lines of code and commands than Django.
Silent scream of RubyMotion
As you probably already noticed we have one user that is constantly posting something about RubyMotion. Usually I have nothing against promotion of products on RubyFlow from time to time, but in this case we’re talking about posting 10 posts within just 30 days, which is on average post every second work-day. I would call it SPAM. [more inside]
Working with YAML Files - Codemy Screencast
We show you how to work with YAML files in Ruby ~ 13 minute video for beginners
Should You Learn RubyMotion or Swift?
A look at Swift’s future, whether it’s worth learning, and comparing and predicting it’s potential future, with RubyMotion’s past. A great read if you’re not sure where to focus your attention. [more inside]
Integration as Composition
I’m puzzling over the design for a worker and would appreciate your comments on it. I started with the pain of an ugly test, made an interesting refactoring, and decided to drop the test entirely, but I’m not at all sure this is the right decision.
Zero to Smoke Test with Sinatra (and Sequel and Pony and OmniAuth...)
Recently I added the first high-level test to a Sinatra app with no tests. This required a lot of initial setup, involving, among other things, RSpec, Rake::Test, Capybara, EmailSpec and Pony, mocking OmniAuth callbacks, and using DatabaseCleaner with Sequel. For the benefit of my future self and anyone else who needs to set up Sinatra for acceptance-level tests, I documented the whole process.
No More Ruby Videos on MetaCasts.tv
MetaCasts.tv will no longer be generating any more Ruby videos. Instead videos will be focused on Go instead. [more inside]
Tips for finding Rails resources at your level
There’s a lot of good, free Rails information around. But as you improve your development skills, it can be hard to find knowledge that’s useful to you. If it’s too basic, you’ll just read about things you already know. Too advanced, and your eyes glaze over and your brain shuts off. You can’t just type “intermediate-level Rails blogs” into Google and hope some good sites pop out. To get the information you’re looking for, you’re going to have to do some digging.
Teatro now supports GitLab repos
We’ve added support for GitLab repos in Teatro.io. So now GitHub and GitLab repositories are supported.
Gem to display the rails environment on the favicon
Recently I’ve created a neat little gem rails-env-favicon to use different favicon in development rails environment. It uses Tinycon - A small js library for manipulating the favicon. And maybe somebody will want to help in the implementation of middleware.
Introduction to loops with ruby continuations
I just wrote a simple introduction to ruby continuations, specifically using them in loops.