There's more than one thing you can do with hashes. Sure, you can store and retrieve key/value pairs, but you can also do things like emulate keyword parameters
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.com/Bantik/synack for prerequisites, then install using gem install synack. Great for piping Rspec results to OS X, and it even works across the network. Enjoy!
Hashes. Associative arrays. Key/value stores. You cannot avoid them. They're just everywhere in Ruby. But many Ruby programmers learn about them by example, copying what they see in other Ruby programs. What are hashes exactly? Why do you use Symbols to index them? How do you use them?
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 and Sinatra.
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.
If you’re new to Rails and Active Record, or you’ve been using them for some time, there are likely methods you’ve been overlooking. Join me this week for a deep dive into Active Record as we cover the query interface, how method chaining works, and how to avoid SQL injection.
This blog post explains how to easily upload PDF documents to the cloud, automatically convert them to images and back to PDFs, generate thumbnails dynamically, extract certain pages from multi-page documents and deliver through a fast CDN. All that done in the cloud without any software installation.
Ruby on Rails sample code included.
I’ve released a new version of my gem Gon (currently 4.0.0) recently, so I’ve decided to make some examples of it’s features in use. Here is my blog post.
: RubyFlow The Ruby Community Blog Home Submit Sign Up Log In leaders Backburner : Reliable beanstalkd job queue Posted by nesquena on July 26, 2012 0 comments Backburner is a recently open-source battle-tested gem for handling jobs using beanstalkd probably the best job queue available . Everyone is already familiar with Resque and DelayedJob but why force job queues into Redis or ActiveRecord when beanstalkd is fast , reliable , resilient , persistent and easy to setup . Designed to maintain a consistent and familiar syntax similar to Resque or DelayedJob . If you have used stalker you will want to check out Backburner as a fully-featured replacement . Comments Post a Comment Comment abilities for non registered users are currently deactivated , pending time to add a proper CAPTCHA to
Why does the 'map' method always return an Array? It doesn't matter what you call it on, even for Hashes and subclasses of Array, the 'map' method always returns a plain Array? Why?</p...Read Full Post
Minimal I18n with Rails 3.2 This guest post is by Fabio Akita, also known as akitaonrails. He is a known Brazilian Ruby Activist and has been the program chairman for Rubyconf Brazil 2012 for the last 5 years. He also co-founded Codeminer 42, a software boutique specialized in taking care of outsourced work from fledgling [...]
(Powered by LaunchBit)
The router is a very important part of any Rails application. It's what stands between HTTP URLs and controllers with actions. It's one last piece of abstraction that takes your Rails application out of the the realm of HTTP, and into purely a "web application" with no real knowledge of what's going on with the HTTP requests (unless it needs that knowledge, it's an abstraction not an isolation layer). And though you'll probably not be spending much time with the Ruby on Rails router, it is essential to know the basics just to get your application up and running.
Registrations are now open for RubyLearning’s popular Ruby programming course. This is an intensive, online course for beginners that helps you get started with Ruby programming. Here is what Demetris Demetriou, a participant who just graduated, has to say – “When I joined this course I was sceptical about how useful this course would be [...]
(Powered by LaunchBit)
How many times have you used the 'require' method? (And yes, it really is a method, not a keyword.) Probably too many times to count. Any non-trivial Ruby program is going to have at least one, if not several, require calls at the top. But what about 'load'? How many times have you used that one? Probably not very many, but there are a few situations where you'd might want to use load over require.
A book review of Exploring Everyday Things with R and Ruby.Review by: RubyLearning’s mentor Victor Goff.Book author: Sau Sheong Chang. Publisher: O’Reilly Media. I got the opportunity to review Exploring Everyday Things with R and Ruby by Sau Sheong Chang and published by O’Reilly Media1 This book, as expected, talks about R and Ruby. The [...]
(Powered by LaunchBit)