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.

Rearmed Gem Released! - Includes Rails 4+ 'or' method

I just released my gem Rearmed. It is a collection of methods and monkey patches for Objects, Strings, Enumerables, Arrays, Hash, Dates, & Rails. One notable monkey patch it includes is an “or” method for Rails 4+. What makes this library different then other monkey patching libraries is that it uses opt-in monkey patching because you really shouldn’t be using methods you don’t know about anyways. https://github.com/westonganger/rearmed-rb

How to Create Custom Authentication Strategies With Devise and Warden

If you’ve built many Rails application, odds are high you’ve encountered the Devise gem. Devise provides several standard features we have all come to expect from modern web applications, such as logging in, securely storing passwords in a database, user tracking, and automatic session expiration. However, when you must authenticate with a new service or your company has its own authentication mechanisms (for example, an SSO portal) do avoid the temptation to design your own authentication service. Instead, follow the steps in this guide and you’ll be able to use Devise and Warden with any form of authentication. [more inside]

An easier way to manage and exec your js file in rails

Rails’s asset pipeline compiles all of js file into a single file which is executed on all pages. There has a problem, some time we want to execute selective code on specific page, but asset pipeline doesn’t support. js-namespace-rails can handle this problem by using it’s method to namespace and selectively execute certain javascript depending on which Rails controller action is active. repo: js-namespace-rails

Loading older posts