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.
Using MockSMTP or MailCatcher only if it’s running (with Rails)
MockSMTP and MailCatcher are great tools when you’re trying to debug emails, but not everyone on your team necessarily has one of them installed (or maybe you just don’t have one of them running constantly). [more inside]
Sinatra using respond_to with url extensions (.json)
I had some issues using respond_to in Sinatra using Sinatra-Contrib. The respond_to method didn’t handle url format extensions in the way I expected, instead requiring explicit accepts headers. Sharing my work around for sinatra url format extensions. Is there a better way?
Howitzer - Acceptance Test framework for 5 minutes
We’ve just launched Howitzer 1.0.1 Its a Ruby based test framework for acceptance testing of web applications and services. With this new release we’ve fully rewritten base functionality, created unit tests and documentation. So do check it out.
Invoker(a process manager) 1.0 release with runtime agnostic .dev domain support
We’ve just launched Invoker 1.0. Its a utility belt for managing processes in development environment. With this new release we’ve added support for pow like .dev local domain support. So do check it out.
Reindex Rails models using tire and resque together for elasticsearch
I just launched the first version of my new lifesaver gem. Please have a look – I would love a code review :)
ActionParameter - Single Responsability Principle for Rails Controller's Parameters.
ActionParameter helps you move all your parameter’s logic from controllers into it’s own class. This way you’ll keep your controllers dry and they would be easier to test. Works with Rails 3 onwards and plays nice with StrongParameters. Link: https://github.com/edelpero/action_parameter
Wicked 1.0.1 Released with Critical Security Fix
If you’re using Wicked, the easy way to build step-by-step wizards in your Rails code please update to Wicked version 1.0.1 immediately a serious security bug was patched. If you do not upgrade, an attacker may be able to view arbitrary files on your server.
ActiveRecord.where.not(:sane => true)
Ever wondered the lengths to which integrating a gem with ActiveRecord might drive a Rubyist? To these kind of crazy lengths.
How Rails reloads code in development mode
Learn how Rails reloads code in development mode and How faster development mode was implemented in Rails 3.2.0
Rjax - elegant responder for ajax requests
After 3 years working with Rails I’ve noticed that my controllers have a lot statements like this:
def index
...
render :partial => "_partial", :locals => { ... } if request.xhr?
# or
render :ajax_template if request.xhr?
end
[more inside]
Explore rails console with pry
Explore the methods rails console provide us, app, helper, controller, and how to hook theme together. Explore rails console with pry
Hacking RubyGems servers
While I was writing Serving ruby gems, the paranoid way, I gradually became interested in the rubygems API and especially in its implementation in both gem server and geminabox. This is how I started a new journey inside the internals of these two programs. Read more: http://blog.gemnasium.com/post/63452494107/hacking-rubygems-servers
application user modifies email before send
found it so simple to application user to be able to modify the email before rails delivers it
Capistrano Maintainer throws in the Towel?
Due to burnout, lack of community support, and Rails Asset pipeline compatibility issues (amongst other things): the Capistrano maintainer is seeking help maintaining the project. Lee Hambley has released a “final” version of Capistrano, recommends switching to a containerized deployment method or a PaaS.
2013 Rails Rumble Registration Has Opened!
I’m extremely happy to announce that registration for the 2013 Rails Rumble is now open! For all the details and a link to reserve a spot, please check out this blog post.
RuboCop: Beyond the Ruby Style Guide
RuboCop 0.14 is out! You really want to see what’s new this time. :-)
Tachypomp: from ePub to HPub
The Tachypomp project is an attempt to build an ebook, using Ruby to convert a Markdown-based text into ePub, HPub and online e-publishing formats.
"Learn Ruby on Rails" Kickstarter Campaign
You can help Rails beginners by contributing to the Kickstarter campaign for the new book “Learn Ruby on Rails.” Learn why I think the book is needed (though we are blessed with many other excellent tutorials).
Two New Features in Authority
Two new features have just landed in Authority: one to help ensure you don’t forget any authorizations, and one to make working with nested resources easier. Here’s a short post explaining them.
Ruby Iteration Methods
Thanks for overwhelming readership of my article on Ruby Closures. Time to move on to: [more inside]
Rubinius 2.0 released
After years of hard work, the Rubinius team released 2.0. Rubinius 2.0 targets compatibility with Ruby 2.1, and will have weekly releases to fix bugs and improve performance.
How to maintain ruby project that works with Ruby and JRuby
I have little hint about separating gems for ruby and jruby when you use bundler.
A diagram of the Ruby Object Model
Homemade diagram that sums up the Ruby Core classes, modules and hierarchies on an A4 format.