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.
Pronto: quick feedback on your branches and pull requests
Pronto runs various analysis tools (Rubocop, Flay, Brakeman…) quickly by checking only the introduced changes. That’s very useful if your codebase is pretty big and/or would result in a lot of output from those tools. It’s already being run on every pull request in our company!
Handle Money in your ruby app with ease
Ever wanted to show your clients all around the world ISO4217-formatted prices? And exchange currencies through an intuitive DSL? Handle Money in an app without having to worry about them, you know, floating point errors? Aaaand yada yada yada? [more inside]
"Upgrading to Rails 4" is open source
upgradingtorails4.com is now open source: https://github.com/alindeman/upgradingtorails4. Feel free to read the source, adapt it for use elsewhere, and contribute. [more inside]
How to reduce the size of your VMs
What I did not realize is that my VMs were growing bigger and bigger by the day while their internal hdd space usage stayed mostly the same as I deleted old files and cleaned them up. more
How to make your code imply responsibilities
Continuing my series on managing display logic, I wrote How to make your code imply responsibilities.
Ruby 2.0: respond_to?
It’s really quite rare that a new realease of Ruby changes a behavior. But, there’s one change in Ruby 2.0 that is definitely breaking some code: new behaviour of respond_to.
My first Rails application
Check out the introduction video of my first Ruby on Rails application I recently deployed to OpenShift: actibities
Pronto: quick feedback on your branches and pull requests
Pronto runs various analysis tools (Rubocop, Flay, Brakeman…) quickly by checking only the introduced changes. That’s very useful if your codebase is pretty big and/or would result in a lot of output from those tools. It’s already being run on every pull request in our company!
Parse and compare Bible references with Pericope
Pericope is a gem for parsing references (i.e. Psalm 118:17). It recognizes common abbreviations and misspellings, can identify intersections (mk 13:1-6 and mk 13:5), and can be used to substitute references in a wall of text.
How to setup page caching with Rails 4
How to setup page caching with Rails 4: http://www.rubytutorial.io/page-caching-with-rails-4
Emulating the Node.js module system in Ruby
I just wrote about an idea I had to see if it was possible to emulate the Node.js module system in Ruby.
Configuring Code Coverage for Ruby/Rails project
My instructions and code that help to set up code coverage for your project.
Planet Pluto New Styles - More Template Packs - Top, (River of) News, Cards, and More
Hello, The pluto planet generator gem that lets you build web pages from published web feeds now includes more template packs. You can see the blank (standard) or top or river of news or card template packs in action on Planet Vienna.rb. Find out more at the project site. Cheers.
Spree Infinite Scroll
Instead of pagination on products page, products are fetched and rendered as the user scrolls down. [more inside]
Revert change on ActiveRecord::Relation#order method monkey patch to keep Rails 4.0.0 order behaviou
Did you like the Rails 4.0.0 ActiveRecord#order behaviour? Well it’s going to dissapear soon. If you’re interested about the reasons and you want to keep it for a bit longer - it’s worth looking at my post: Revert change on ActiveRecord::Relation#order method monkey patch to keep Rails 4.0.0 order behaviou
How to work with presenters and collections of objects
I just posted Formatting collections of objects with SimpleDelegator on my site. Let me know what you think.
Multi tenancy with Devise and ActiveRecord’s default scope
Ryan Bates, in this screencast shows how to implement multi tenancy with default scopes, using subdomains. In this blog post I show how to implement the same model of multi tenancy using Devise for the authentication layer, and without subdomains. This is useful when you don’t want or can’t use subdomains or for example when you only enable subdomains as a premium feature, meaning that your application needs to have multi tenancy both with and without subdomains. [more inside]
Trust-Driven Development ebook gets a beta release
I just released the first 30-40 pages of Trust-Driven Development, an ebook about making your projects run awesomely, and becoming better at the profession of software development. [more inside]
Simplify your code with your own conventions
I just wrote a post about automating repeated ideas and displaying potentially dangerous data on my blog.
A Flexible Framework for Leveling Software Engineers
What is the difference between a Software Engineer and a Senior Software Engineer? Do years of experience have any part in determining seniority? How do the years of experience numbers get determined in all these job descriptions I read? I address these and other questions in a new post.
Browsing Padrino's Code Base With Ctags in Vim
I have just written a new blog article about Browsing Padrino’s Code Base With Ctags in Vim.