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
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
my_sql_secure tool
May be someone find useful this tool. It is made for easy db dump cleanup, if you need to do it with raw dump. https://github.com/kvokka/mysql_dump_cleanup
Spree 3.1.0 final relase is out!
We’re excited to let you know that Spree 3.1 stable final release is out: https://github.com/spree/spree/releases/tag/v3.1.0 Spree 3.1 is introducing several new features: [more inside]
Decoupling subsystems in #rails apps is hard
in Communicate via published Domain Events between Submodules video you learn one technique on how to do it
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
Ruby Plus Podcast Episode 7
Listen to the latest news from Kent Beck, DHH etc Ruby Plus Podcast Episode 7
The Observer Pattern and Exception Handling
Observers are a useful mechanism of composition to set up event flows. They are designed for ‘fan out’ communication, in which multiple objects are notified when a single object changes. Many languages have implementations of the observer pattern. Ruby, for example, has a module Observable that implements the pattern
Metaprogramming in Ruby
Generating code, sending messages, asking our code questions about itself… all things I cover in an article on Metaprogramming in Ruby.
Is Rails a good fit for writing rich frontend applications?
This is a question I’ve asked myself months ago, working as a consultant for a client with a quite unique app. [more inside]
Ruby Ranges: How Do They Work?
Have you ever wondered how ranges work in Ruby? Read this post to learn more! http://www.blackbytes.info/2016/06/ruby-ranges-how-do-they-work/
Rails Progress Indicator for Turbolinks Using NProgress
I wrote a new article on implementing a Rails Progress Indicator for Turbolinks Using NProgress. Hope you enjoy!
How we've cut our development time in half by losing Rails
There are very few reasons to use Rails on a site that does not have the need for it. So while that’s common sense, the hard part is figuring out what is it that your site needs and if it does or does not benefit from what a framework like Rails gives you. Maybe this post will give you a few ideas Read it here
How to efficiently process large Excel files using Ruby
I worked on a project in which I needed to parse and handle large .xlsx files. Some of those files had more than 200K rows. In this article, I describe how to do it efficiently using Ruby and Rails.
Real Time Rails 4: Using Server-Sent Events with Authy OneTouch
Rails 5 and Action Cable might be on the way, but did you know Rails 4 has its own real-time features. We take a look at implementing Server-Sent Events with Rails 4 in the context of two factor authentication with Authy OneTouch.
Solidus eCommerce: Cleaning up Authentication Pages
In this episode we clean up the authentication pages. We start by copying files over from the solidus_devise_auth gem where the file structure is slightly different than what we’re used to. [more inside]
A Six-Pronged Rails Performance Philosophy
There’s more to performance than database indexes, eager loading, and prefetching links. Sudara Williams shares a rails performance philosophy.
[podcast] James Edward Gray II makes Ruby do whatever he wants it to
James joins us to share his story of how he got into programming, and his journey through the world of Ruby and Rails over the past 10+ years. He tells you what he does when he gets stuck, how to get past the newbie freak out, and how to adopt an effective problem-solving mindset. He also shares his thoughts on the less code movement, and how to find a community of practice that will help you become a better developer.
Dockerizing Ruby Applications
The beginner guide to dockerizing Ruby applications: http://blog.kontena.io/dockerizing-ruby-application/
[Gem Release] hubstaff-ruby
You can now build advanced time tracking functionality into your Rails app, or create your own custom solution for displaying Hubstaff data to your clients using hubstaff-ruby.
New Free Yuki & Moto Book - Gem Developer's Guide by Nick Quaranto, Eric Hodel, et al
Hello, I’ve added a new book to the Yuki & Moto Press bookshelf. Let’s welcome to the series: Gem Developer’s Guide by Nick Quaranto, Eric Hodel, et al. Happy reading & coding. Cheers.
How to translate JavaScript strings in Rails
Rails I18n and elegant message passing to JavaScript . | Read More |