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.
Last week for NickelCityRuby's CFP - Want to give a talk about something Ruby related? Submit!
I’m helping to organize NickelCityRuby in Buffalo, NY this September, and our CFP closes this week. You still have time to submit a talk! New speakers are welcome.
Protector: ORM security DSL
Meet Protector – the Ruby ORM extension for managing security restrictions on a field level. Check out GitHub’s README to know how and my article to know why.
Behavior-Driven Integration and Unit Testing
Traditionally application code is written first and tests afterwards. After writing a piece of code, you write unit tests. And once you finished a few pieces of code, you write integration tests to see if they fit together. In Behavior-Driven development there is an approach called Outside-In Development where we go the other way round. Have a look at this screencast to learn more! [more inside]
Using ember-auth with Rails 3 and Authlogic
Tutorial on how to use the ember-auth library to authenticate your Ember.js frontend with your Rails 3 backend using Authlogic. [more inside]
New gem for syncing production tables to development
I just launched github.com/scottschulthess/db_sync [more inside]
The Complete Guide to Environment Variables
This recent addition to the Phusion Passenger manual explains what environment variables are, how they work, and how to set them for different services (bash, Apache, Nginx, cron, Ruby apps)
Rails cache explained with example app & benchmark data
Probably caching in Rails is old phenomenon, but this article on Rails cache with Example app & some benchmark data is pretty good for someone looking to understand Rails cache from scratch & see it in action too.
Using frame_binding for great evil
After a discussion with a coworker, I decided to see if it was possible to extend Symbol#to_proc to invoke local methods (only for fun!). I discovered frame_binding from Ruby 2.0’s RubyVM::DebugInspector while hacking something together.
Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx Part 2
I just launched the second part Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx Part 2. Please take a look if you like.
5 developers-friendly (or not) European gateways
We recently had to test most of the European developer friendly gateway, so here are some names and what we think about them on our blog.
Cut average response time by three quarters using Redis
Shortly after launching my site using Sinatra and hosted on Heroku I was looking for ways to improve the performance. I looked through the add-on services Heroku offered and found Redis-to-go had a nice looking free tier. So I went ahead and implemented caching with Redis. Here’s the results: [more inside]
Afraid of the big nasty gem?
A malicious gem could do pretty much everything on the environment that runs its code, from stealing critical data to taking control over the entire operating system. It may only take minutes for the malicious software to access poorly protected files or to exploit its way up, from running as restricted user to escalating to a privileged user. Read More
Wiselinks 0.6
Wiselinks, a widely used alternative to PJAX and Turbolinks, got 0.6 release on last weekend. [more inside]
Pearl: DigitalOcean command line tool
I just updated Pearl. You can now rename droplets, transfer images to other regions and add ssh keys.
Mousetrap-rails gem now compatible with Rails 4 and turbolinks
I’ve just released Mousetrap-rails v0.0.10 (gem for handling keyboard shortcuts in web apps) which is now compatible with Rails 4 and works with Turbolinks gem.
Command line tool for GitHub API
I’ve just released major upgrade to the GitHub CLI which provides refined interface, more commands and better configuration.
Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx
I just launched the first part of my new tutorial Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx. Take a look if you like.
How should Authority support view caching in Rails 4?
How should the Authority gem support Rails 4’s new view caching approach? I’ve just opened a Github issue on the project and would love to get some input from the community, especially those already using the two together.
Announcing RubyAudit - Protect your apps from Gem vulnerabilities
I just announced RubyAudit. RubyAudit will alert you when a vulnerability is found in Gems your app uses.
Bringing Continuous Deployment to everyone
Continuous Deployment can be incorporated into every company. We held a meetup and talked to Etsy, GrabCAD and insightsquared how they did it. [more inside]
Bundler.unload!
I just released gem bundler-unload an extension for Bundler allowing to unload bundler back to bundlerless state. The code was extracted from rubygems-bundler and is used now as dependency.
New gem for asynchronous content loading
I just launched kent - gem for asynchronous content loading.
RSpec Shoulda Matcher Model Extras
Learn about some model matchers you might not already know about when using shoulda_matchers with RSpec.
Ruby on Rails 15 minute blog tutorial series
reInteractive Developer Leonard Garvey has put together a set of step-by-step articles to help newbies get introduced to Ruby on Rails. reInteractive have used these articles as part of their InstallFest initiative, with 35 participants already set-up and started, and a goal to reach 200 people by the end of the year.
Using Pow's default app to dynamically list/link your other Pow apps.
If you use Pow to manage your Rails apps and you have a lot of apps, you might find this useful. It’s a default app that lists/links to your other apps so you don’t have to remember their names.