RubyFlow The Ruby and Rails community linklog

×

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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

Dealing With Embarrassing Breaking Changes

Recently I was contracted to bring a Rails 2.3 app up to Rails 3.1, and by far the largest chunk of time was spent on patching or replacing abandoned 3rd-party dependencies. I get embarrassed for our community when I have only two options to recommend for upgrading code: expensive changes or stay on an old version. Here I tell the story of my embarrassment, and recommend encapsulating those dependencies as a means to keep the upgrade demons away.

And that’s why you should not use a lot of 3rd party plugins.
Tiger’s argument in both valid and invalid. I think it is invalid to say you s…

Remotipart 1.0 released: dead-simple AJAX file uploads in Rails 3.0 + 3.1

I just released v1.0 of the Remotipart gem. It uses a jquery iframe-transport and some custom middleware and JS, to build upon the standard jquery-ujs built into Rails 3.1 (and available for 3.0). This gem allows your remote forms to upload files, plain and simple. It requires basically no configuration. Feedback welcome :-) View Remotipart 1.0 Released

Private Methods: To Test or Not To Test?

Some say that you should only test your public API. I disagree officially in this blog post that shows pros and cons of testing private methods, too. I’d love to hear your opinions!

I left a comment on your blog, but here’s my take on the topic: http://blog.rub…
http://www.fitflops.in.net http://www.mlbjerseyscom.us.com http://www.coachoutl…

Awesome Nested Fields for Rails

In Rails, you can create forms that have fields from nested models. For example, if a person has many phone numbers, you can easily create a form that receives data from the person and from a fixed number of phones. However, when you want to allow the person to insert multiple, indefinite phones, you’re in trouble: it’s much harder than it should be. Well, not anymore. Check the awesome demo or the project code. =)

I got the same problem. But it’s pretty easy to fix it. Replace <%= f.select…
Nice Anderson. Pull request applied and app updated. Thanks!
I mean this as a genuine question and not a criticism, but how does this differ…
In fact, I started this project one year ago for an app that uses this nested f…

Executing a Ruby block in a different context - solution & optimization

I just wrote small blog post regarding a problem I recently faced. My challenge was to execute with a delay a block stored in an ivar but the tricky part is that the block needs to be executed in a different context. I was after a clean solution that would perform well. This is a summary of what I found out and my final solution.

Use text in links, dude! :-) (Fixed..)
It’s Labor Day in the United States of America, writing raw HTML was requiring …
Bâtard paresseux! ;-)

Textmate to VIM: How to do 100 favourite Textmate commands in VIM

Are you still using Textmate? Wouldn’t you like to switch to VIM for the promised massive productivity boost? Now’s the best time to move to VIMlandia with my guide in hand. I was a Textmate power user and prided myself on knowing every keyboard shortcut in the program. In this post, Textmate to Vim, I show you how to do in VIM 100 commands you knew and loved from Textmate. Brought to you by Jack Kinsella, Rails Developer London

Loading older posts