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.

Observers in Rails

Let’s say you need to listen to changes in a model’s attributes and trigger some events based on those changes. If you look at the following example, I’ve done exactly that. If the status of the application is changed an email is sent. [more inside]

IMPLEMENTING UPSERT IN RAILS

An upsert is update or insert. Upsert in database terms refers to an operation which should insert a row into a database table if it doesn’t not already exist, or update it if it does. One can implement this function in Rails by writing anActiveRecordExtension. This will allow you to call the upsert method on any model. [more inside]

No sign up and any paying required here,so just one a single click here this we…

Journeta Engine updated for Ruby 2.3.1!

Journeta is the simplest, most flexible gem for finding Ruby processes on the local network, allowing event-based exchange of arbitrary data with ZERO configuration. Peer management is managed automatically by the engine. Today’s v1.1.0 release comes after a two-year hiatus, and adds first-class support for v2.3.x of the default Ruby interpreter (MRI) in addition to bug fixes and sample code. Journey is free software from Lee Does.

NPM integration for Rails

https://github.com/endenwer/npm-rails This gem made it easy to bring NPM to Rails. Under hood it use Browserify. Just like Bundler but for NPM packages.

Looks like a great idea!
This is pretty slick this could possibly replace rails-assets for me.
Thanks. I made it because want to use NPM instead of rails-assets with Bower. F…

Clear Intentions: Do you speak 3?

It’s easy to mistake current knowledge for universal knowledge. Decisions that were straightforward a year ago are a mystery today. We’ve all done it. Why did I pick that value? What made them do it that way? One way to mitigate this is to make your code clarify your intent. [more inside]

Loading older posts