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.
A slim library to work with oEmbed format
I’ve crafted oembed gem. It has no external dependencies at runtime and helps you to build a client for any oEmbed provider. Take a look on examples.
Getting the jasminerice & requirejs-rails gems to play nicely together
Pretty niche setup at the moment, but if you’re using RequireJS in your Rails project (using the great requirejs-rails gem) and want to test your modules using Jasmine (using the awesome jasminerice gem) then you’re probably going to run into some issues… Read more
Branching, Merging and Restoring branches with SVN.
Branching, Merging and Restoring branches with SVN..
A hundred network stories
I just deployed a network security tool—Aoandon—for my students and anyone who might be interested. Have fun!
Testing binary rubies with RVM development version
I have just pushed binary rubies installation support, this will be released shortly (week or two) with RVM 1.16.0. Read more
Version your Rails views (show.v1.json.jbuilder, show.v2.json.jbuilder, ..)
Easily version your Rails views with VersionCake (e.g. edit.v1.html.erb, edit.v2.html.erb, ..). If a view for the current version doesn’t exist, VersionCake automatically degrades to the previous view version. A specific render version can be passed via the request header or query param. Perfect for API/jbuilder views. Can also be applied to any other view type (html erb/haml, etc).
raise “hell”: Better Programming Through Error Messages
Exceptions suck, but they don’t have to. Learn how to program better through error messages, and see how improved messages are going to rock your world in Rails 4.0.
EAV behavior with ActiveRecord ORM and HydraAttribute
I’ve just released the hydra_attribute 0.4.0 gem that allows to create or remove attributes for the model in runtime or assign unique attribute list for each record. Also it is possible to use query methods for selecting or grouping records by that attributes. There are a lot of examples on the github wiki page including database structure that this gem creates.
5 Reasons You Should Use ri To Read Ruby Documentation
Over the last few months I’ve started using ri more and more. I put together a list of the compelling reasons that I prefer it over Google Search.
Introducing Pogoapp
We’re building a new app hosting platform with Heroku REST API/buildpack/Procfile/S3 compatibility, running on dedicated servers. This blog post is as an introduction to what our architecture looks like and why. We’re looking for a handful of trial users to start kicking the tires and giving us feedback.
Learning Chef
In my new blog post, I write about how I learned the basics of Opscode Chef and provide some tips on how to get started. As Ruby plays a key role in Chef, I wanted to share this piece with you.
using sublime text to view helper methods from within irb
I wrote quick blog post about adding a method to open helper methods from within IRB in sublime text.
2012 Rails Rumble - Official Registration Dates & Competition Details!
Official registration dates & competition details for the 2012 Rails Rumble are now live! - Please help spread the word!
Migrating Your JRuby Rails App Using warbler-exec
Using warbler-exec, we can use the .war file itself to run the migrations, without needing to transfer another copy of the rails app specifically for this purpose. Here’s how.
Linear Regression Using Ruby
Short introduction to linear regression that walks you through the basic math and shows you the Ruby code necessary to perform some basic linear regression http://www.sharethrough.com/2012/09/linear-regression-using-ruby/
Game of Life Viewer
I just released a Game of Life Viewer (life_game_viewer on RubyGems) that you can use to view the behavior of your Game of Life implementations and experiment with different data sets. It comes with a sample implementation and data set that you can see by running the ‘life_view_sample’ executable installed with the gem. Github project page is at https://github.com/keithrbennett/life_game_viewer, blog article at http://www.bbs-software.com/blog/2012/09/05/conways-game-of-life-viewer/. The application must be run in JRuby, as it uses Java Swing for its GUI.
Visitor Tracking without User Signups in Rails
I recently needed to track user behavior to allow them to update resources but didn’t want them to have to create an account. To accomplish this I built a visitor class and used cancan to manage permissions. I’ve written a short writeup about Managing Resource Ownership Without Creating an Explicit User Account
Web Fonts Performance: Making Pretty, Fast!
An in-depth look at the performance and optimizations behind web fonts, and Google Web Fonts in particular.. Web fonts are here to say, and that’s a good thing - yes, even for performance!
RuPy 2012 - Call for Proposals!
RuPy is unique conference that compares different approaches, brings together communities from different programming languages: Ruby, Python and JavaScript. It is organized by a community of volunteers and non for profit. This fall, there will be two simultaneous editions of RuPy: one will take place in Brno (16-18 Nov 2012 Czech Republic) and the second one in Sao Jose dos Campos (7-9 Dec 2012 Brazil). If you haven’t applied yet, now it is the best moment to do it – there are still a few days to submit your proposal. It can be done in two ways - by using this form and by Github until 15th of September. RuPy is waiting for you!!!
Setting Up Fallback Locale(s) in Rails 3
A short article on setting up fallback locale(s) in Rails 3.
5500 Flashcards on Web Development With Rails
I released a set of 5500 questions and answers on various aspects of modern web development using Ruby, Rails, JavaScript, CoffeeScript and the command line. Turned into a book, it would be over 400 pages; I’m giving them away for free. I hope you find them useful: web development flashcards.
Geofencing with Ruby and Mongo
I just wrote an article on implementing geofences with Mongo and Ruby. It’s in Ruby because that’s my language of choice but this design can be extended to any number of languages. The series is broken up into parts: Part 1, Part 2 and Part 3. Enjoy!
Best Way To Learn Ruby on Rails as a Beginner
A great article on how to approach Ruby on Rails from a beginner’s perspective.