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!

Fetches: Rails plugin for simple, DRY parameter-based record fetching

Fetches is a new Rails plugin that allows you to easily create memoizing parameter-based record-fetching helpers in a controller.

Comments

I wanted to take a second to ask a quick question on this post:

I have been posting links to Intridea’s blog about once a week when we are releasing new open-source plugins and libraries. The last thing that I want is to annoy anyone or be pegged as a self-promoting spammer. I post the links because I really think the open-source stuff that we’re making is useful. If you feel “spammed at,” please let me know!

Thanks!

Quite the contrary, I look forward to your posts! I can’t imagine anyone misconstruing your posts as spam.

Definitely keep them coming.

Is Fetches a response to not being completely satisfied with memoization that’s currently in edge? Or were you using this before it was added to edge?

Thanks and keep up the great work.

I’m not really all that thrilled with the memoization in edge…I feel like it’s a generic solution to a specific problem and doesn’t really save me all that much time. However, I’ve been using things along this line for quite some time. My previous plugin Needy Controllers includes a less robust version of the same thing.

I’ve actually been thinking about submitting Fetches as a Rails core patch since it applies so universally in my opinion. Need to write some solid tests for it first, though!

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

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