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.

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