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.
Metaprogramming Example Guide
It was a while ago, but when I read “Metaprogramming Ruby,” I followed along by writing brief summaries of the explanations in the first half of the book along with example snippets. Annotations were produced with xmpfilter.
Using Page Objects for Cleaner & Less Brittle Integration Specs
Mike Mazur talks about Page Objects over at the Neo blog.
(Video+Slides) Domain Driven Rails
Reverb.com CTO Yan Pritzker shows how to apply domain driven concepts to create “write once, don’t modify” code in Ruby on Rails. The video of the talk is up and slides are here.
Installing Ruby on Rails on Mac OS X Yosemite
If you’re upgrading to Mac OS X Yosemite, now’s the time to update your Rails development environment as well. Here’s my article on Installing Ruby on Rails on Mac OS X Yosemite.
Clean Up Your Rails Controllers With Decent Exposure
The decent_exposure gem can go a long way towards cleaning up your RESTful Rails controllers, resulting in significantly less boilerplate code you’ll have to write to implement conventional RESTful actions. This tutorial introduces you to this great gem, and offer several examples demonstrating just how much code decent_exposure can eliminate.
search_cop v1.0.2 released
I released version v1.0.2 of search_cop as a bug fix release. search_cop adds search engine like query features as well as fulltext index capabilities to ActiveRecord. Go ahead and try it out.
8 steps to move Rails view to Marionette
8 steps to move Rails view to Marionette with a lot of code snippets + additional resources list.
Integrate Facebook Graph APIs in Rails Apps
We wrote a tutorial on how to integrate Facebook OAuth with Rails apps with the Omniauth-facebook and koala gems.
Rails & memory leaks
Rails & rescue from memory leak.
App for rewarding & motivating your co-workers. Heroku deploy + case study based on Special Guests.
Check out our brand new app ‘Reward Them’ Reward Them is a recognition and reward system which primary role is to strengthen relationship between co-workers. Experience and time showed that it also perfectly works as a motivational tool. [more inside]
How does Rails handle gems?
If you’re not sure how Bundler works, the way gems get pulled into Rails might seem a little too magical. How does adding a line to a Gemfile get code into your app? How do Bundler, Rails, and RubyGems work together to make handling dependencies easy?
Preview: Easy one-click Ruby on Rails setup on Digital Ocean
Here’s a preview of a new feature for Intercity. We just launched easy one-click Rails integration for your Digital Ocean Droplets.
Metaslug, a gem to manage your metas
We created Metaslug, a gem to let you easily manage your metas informations (title, description, opengraph…)
Cheat ActiveRecord with pg_morph!
pg_morph is a gem created by Hania Seweryn from Lunar Logic. It makes it possible to add foreign key constraints for each polymorphic relation type with ActiveRecord and postgreSQL. Hania wrote the “Polymorphic relations and DB consistency with ease? From now – yes!” post about it. Have a nice reading!
Evaluating Reverse Polish Notation in Ruby
I just wrote a post on evaluating reverse polish notation using a stack in Ruby.
beer.db (and Ruby) in Action - Brewery n Brewpub Map for Austria (w/ GeoJSON)
Hello, using the beer.db - open public domain brewery, brewpub and beer data - and - of course - Ruby let’s you make your own beer map thanks to GeoJSON. See an example beer map for Austria (~200 breweries n brewpubs). The build script geo.rb - still early and rough - but working is just a couple of lines. Cheers. Prost. Kampai.
Free episode of my RubyMotion for Rails Developers video course
I have a new series I’m working on called RubyMotion for Rails Developers. The intro video and the first episode (“Hello RubyMotion”) are up and free to watch to get an intro into using RubyMotion. There will be a new episode released each week. Subscribe for only $9/month to get access to the other 11 as their released.
Green Ruby News #88
Green Ruby News #88 is out, fresh links from last week for fullstack ruby devs.
Route Globbing in Rails
A blog post about route globbing in Ruby on Rails
A Memcached Trick and an Old Watchdog
A blog post about a patch on the Dalli Memcached adapter for Rails that is really a discussion about a gem called Watchdog that makes monkeypatching less dangerous.
Pastel v0.1.0 gem release
I’ve released pastel to allow for non intrusive styling of terminal output. Please give it a go and provide feedback!
Memoization in Ruby, Python and Javascript
A little brief about memoization in Ruby, Javascript and Python. Check it out here!.
queue_classic 3.0.2 released and plans on 3.1
I just released queue_classic 3.0.2. I you are using it. Please see the upgrade instructions in the README. [more inside]
How does Rails (Rack) parse complicated form name with arrays and hashes
I found this great blog by Noah Gibbs, to something I’ve been wording about for a while. Quite often some of my forms get really into the nesting by name=”name[1][key1][key2][]”, this blog post provides information on how to test it out with IRB so I know exactly what I’m generating. [more inside]
kibana-rack 0.2.0 released
I just released version 0.2.0 of kibana-rack, a Rack middleware library that embeds Kibana in a Rack application and creates a proxy to Elasticsearch. [more inside]