Besides enabling multi-threading by default, one of the things I really wanted for Rails 4.0 is the ability to stream data to the client. I want the ability to treat the response object as an I/O object, and have the data I write immediately available to the client. Essentially, the a...
July 30, 2012 Tagged: method_missing ruby respond_to_missing? Comments (View) Always define respond_to_missing? when overriding method_missing method_missing is still considered scary, but here’s something more scary: forgetting to override respond_to? . Whoa, right? Just gave you an ...
Synack: Mountain Lion Notifications via Ruby Posted by Bantik on July 30, 2012 — 0 comments Synack is a client/server wrapper for Terminal Notifier that allows messages to be sent from Ruby programs to Mac OS X Mountain Lion's Notification Center. Check the README at https://github.co...
The differences between dup and clone in Ruby Posted by mattetti on July 29, 2012 — 0 comments I just wrote a quick explanation with examples of the differences between copying and cloning a Ruby object. I've also added a quick explanation of shallow object copying. Comments Post ...
Ruby with MongoDB for Web Development Posted by IndianGuru on July 30, 2012 — 0 comments The article "Ruby with MongoDB for Web Development " by Gautam Rege will walk you through modeling a Ruby application, learning various constructs of MongoDB, and then integrating it into Rails an...
Master Time and Space for JavaScript Posted by noelrap on July 30, 2012 — 0 comments A new ebook on JavaScript that might be of interest to Rails programmers, details at http://www.noelrappin.com/mstjs-faq/ Comments Post a Comment Comment abilities for non registered users are cur...
Monday, July 30, 2012 at 6:08AM Had a fine couple of days off. Now back to the ones and zeros. Testing With Frank - iOS application testing with Cucumber. Backbone.js explained in CoffeeScript - An interactive learning eBook. How to add Notification Center support to your website or a...
Gamification has picked up steam over the last couple of years—and for good reason. Gamification delivers on a variety of business objectives, not least of which is increased engagement rates. Engine Yard offers a powerful solution for those seeking to gamify applications. With the En...
Monday, July 30, 2012 at 6:24AM Week of July 23 - July 29, 2012 Biggest change this week is probably the introduction of ActionController::Live, but there are lots of little advances as well. 449039a8 swaps out ActionDispatch::Head in favor of Rack::Head. Don't get too used to update_...
We use Ilya Grigorik’s em-proxy to fork traffic in real time from our production environment to a load testing environment which is identical save for the new code. (See the duplex.rb example in em-proxy). We use Engine Yard’s “Clone Environment” feature to make a reasonably up-to-dat...
In this episode I build upon a standard Devise setup and show how to add 3rd party authentication using OmniAuth. This includes support for user validations and is compatible with normal password authentication.
Today's screencast is about understanding workflow in Tracker, with a twist of organization. The Current panel shows you all of the stories your team is working on this week or "iteration", including those that are in progress, as well as stories that Tracker thinks you're going to ge...
I hang out in #nwrug on Freenode, the IRC channel of a Ruby user group here in the UK, and floated the idea of doing a PostgreSQL (a.k.a. Postgres) installation tutorial for Ruby Inside. Coincidentally, it turned out 37signals sysadmin Will Jessop was already working on one so, I pres...
For clarity’s sake: the precision is the number of significant digits, while the scale is the number of digits that can be stored following the decimal point. For example, the number 123.45 has a precision of 5 and a scale of 2. A decimal with a precision of 5 and a scale of 2 can ran...
#!/usr/bin/env ruby # I'm calling this "Poor Man's Seaside" for now. # The real Seaside is at http://beat4.com/seaside2. # It's not supposed to be good code, so don't get confused. # It's just supposed to be as simple as possible. # The purpose is to demonstrate the "trick" that Seasi...
[Journey to Japan #3] Exclusive Video Interviews English RubyKaigi2011 2011 November 28, 02:40 h It’s been a while since I’ve written about my Ruby Kaigi 2011 trip . Since then I’ve been really busy and I left out lots of great material shamelessly accumulating dust in my hard drive, ...
Hi, I'm trying to print out some xml and don't know what I'm doing. I'm getting this <to_s/> tag in the output. Where is it coming from and how do I get rid of it. Here's my test code. Any help appreciated. CODE: require "builder" class Fruit attr_accessor :name end fruit = Fruit.new(...
Eagle Scouts stand up to the Boy Scouts of America , “Now due to the recent decision by the National Council to uphold its policy on banning gays from participating or volunteering in Scouts, I can no longer support the Boy Scouts of America. I am returning my Eagle Scout rank and Ord...
To solve various problems with Ruby, you might develop your own libraries. Also, you might want to open-source your libraries to get help from the Ruby community and have many developers working on the same. A gem is a packaged Ruby application or library. RubyGems is the standard way...
How to bust your Rails etag cache on deployment. Posted by Nate on July 27, 2012 — 2 comments A simple tip to handle etag busting on deploying your Rails app. Comments This works fine provided you only have a single instance of your app running , otherwise that timestamp may be di...
Messages a delimited by two newlines. The data field is the event’s payload. In this example, I’ve just embedded some JSON data in the payload. The event field is the name of the event to fire in JavaScript. The id field should be a unique id of the message. SSE does automatic reconne...
<%= button_to "New", :action => "new" %> # => "<form method="post" action="/controller/new" class="button_to"> # <div><input value="New" type="submit" /></div> # </form>" <%= button_to "New", :action => "new", :form_class => "new-thing" %> # => "<form method="post" action="/controller...