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.

MiniRecord: ActiveRecord without Migrations!!

Sometimes I prefer to use DataMapper because it’s faster and cleaner write “schema” directly inside models, unfortunately my co-workers are too lazy to study a bit DM. So I started to write a small plugin for ActiveRecord 3.1 that replicate this awesome feature. Try MiniRecord!!!.

@bcardarella don’t see why it particularly matters. It’s not like an app has to…
abc20180823 atlanta braves jerseys uggs outlet store pandora charms oakley sung…
chenlina20181117 http://www.stuartweitzmanshoes.us.com http://www.uggssale.org …
canada goose jackets coach outlet online ralph lauren polo shirt la…

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…

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! ;-)
Loading older posts