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.
Ruby 2.2.3 Module Basics : Part 9
Ruby 2.2.3 Module methods such as module_function, prepended, private_instance_methods, remove_method and undef_method is covered in this video
Rails : Render templates outside controllers
Came across this blog post where it discusses and compares ways to test or render the #view #templates outside of the #controllers. #rails5 #rails4 [more inside]
Reengineer legacy Rails applications
I wrote a blog post with a workflow to reengineer legacy Rails applications #rails #cbra #ruby http://teotti.com/reengineer-legacy-rails-applications/
How to Write Ruby Web Apps without Rails
We rubyists love our frameworks, and for good reason. But have you ever had a small app where Rails or even Sinatra was more than you needed. Even if you haven’t, every ruby coder should understand how a basic Rack app works.
Static Site Spotlight #1 - The Riding Rails Blog is build with ... Jekyll
Hello, over at Vienna.html I’ve started a new series that highlights a static site (w/ source) every week. The first real-world example is “The Riding Rails Blog” build with… Jekyll. The next example is “The Go Cookbook” build with… Jekyll. For more updates follow along. Cheers. PS: Know a great static site to spotlight? Let us know here or ping @viennahtml.
Ruby 2.2.3 Module Basics : Part 8
Ruby 2.2.3 Module methods such as extend_object, extended, included, method_added, remove_method and method_removed is covered in this video
Building a backend agnostic search query interface for ruby
The engineering team of e-Travel shares somes insights on how they build a backend agnostic search query interface for ruby: http://engineering.pamediakopes.gr/2015/11/06/the-agnostic-query/
New release for migration_data
Now it’s possible to squash old migrations with a rake task easily. Checkout my post about the feature (see update section). And this is the gem for those who are not familiar with it.
Freakonomics CLI
I published a small CLI, wrapped in a gem, that makes it easy to fetch episodes of Freakonomics Radio* via the command line. Check it out here. [more inside]
Spanish ebook on Rails "Aprendiendo Ruby on Rails"
I’m currently writing this eBook as Early Access model. The book is focused on experience working with clients (from consultancy http://michelada.io) on real Ruby on Rails applications. [more inside]
Tips for Contributing Open Source Projects
Hi, I’m Stan. I wrote an article that provides some tips about contributing open source projects. And if you are junior developers like me and wants to make some contribution, this article might help!
Bootstrap Templates Added to Rails Composer
I’ve released Rails Composer with a collection of 23 Bootstrap page templates.. The Rails community contributed to a Kickstarter campaign to make it happen. You are awesome! Enjoy.
Know your ActiveRecord objects
I don’t know if this happens to you, but at times I find it hard to escape the SQL style of building queries with ActiveRecord. In this post I show a couple of examples.
https://github.com/simplabs/rails_api_auth
RailsApiAuth is a lightweight Rails Engine that implements the “Resource Owner Password Credentials Grant” OAuth 2.0 flow as well as Facebook authentication. Find more info on github or in the introductory blog post.
A Ruby Gem for Scalable Offline Sort
At Salsify we needed a way to sort the contents of large files using a predictable amount of memory. This blog post discusses our journey toward better understanding Ruby memory and performance characteristics as we built our offline-sort gem.
How to rotate Rails logs
Logs tend to get huge over time in Rails apps which can lead to “No more space left” type of errors. To avoid this learn How to rotate Rails logs.
Retrieving the last N ordered records with ActiveRecord using subqueries
We recently built a chat, and ran into an interesting issue regarding retrieval of chat messages, with an interesting solution. There’s a blog post about it on the Elabs blog: http://www.elabs.se/blog/72-retrieving-the-last-n-ordered-records-with-activerecord
Holy Hacking, Batman! Create Alfred Workflows in Ruby
Introduces the productivity tool Alfred and describes how to implement workflows in Ruby without using the Alfred libraries.
Heroku - process exited with status 0
Short debugging story about setting up Sidekiq on Heroku and “process exited with status 0” puzzle to solve
Break it Baby, Break It – How the network sniffer "Wireshark" can break Rubygems
Occasionally I get some really weird errors when I try to install gems using gem or bundler. It took me some time to find out the reason for this. Read this article if you’d like to hear the full story.
Ruby 2.2.3 Module Basics : Part 7
Ruby 2.2.3 Module methods such as remove_class_variable, singleton_class, alias_method and using instance_method in combination with define_method is covered in this video
Part 4: Importing book sales from Amazon with Ruby on Rails
Finally the part 4 of How to build a Ruby app series, where we create the Rake tasks to fetch sales ranking data for our Ruby on Rails books from Amazon.
Announcing Rubinius Analyst
Want to know what your app is really doing with no runtime cost? Check out Rubinius Analyst.
Rubocop as a Teaching Tool
I summarized my experience using Rubocop to teach the style guide for a big Ruby project.