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.

General availability of App Service on Linux and Web App for Containers

Microsoft announces that Azure App Service is now generally available on Linux, including its Web App for Containers capability. With this, we now offer built-in image support for ASP.NET Core, Node.js, PHP and Ruby on Linux, as well as provide developers an option to bring their own Docker formatted container images supporting Java, Python, Go and more. [more inside]

How to include Rails Associated Model Data in React components

A short post on using jbuilder in Rails to send JSON data to React components. When you start using React with Rails, one of the frustrating problems you quickly run into is trying to access associated model data from your React component. This article shows one way to work around that issue. [more inside]

For a much easier solution check out http://ruby-hyperloop.io …

BABL: A Functional API Templating Language

Initially inspired from RABL, this gem implements an elegant but powerful Ruby DSL for describing transformations from your models into JSON, in your APIs. Thanks to its compilation step, it has some advantages over today’s alternatives (RABL, Jbuilder,…), such as fast rendering (zero overhead for partials) and automatic documentation generation (JSON-Schema). [more inside]

Change sidebar content for certain Rails controllers

Most (or even all) pages in your Rails application have the same sidebar content, but just one needs to show something different? On your login and registration pages, you don’t want to show the last five books/movies/events, but a marketing text why people should signup for your site? You’re currently using an if/elseif/else statement to switch content based on the controller’s name? I’ll show you how to fix this with the help of Rails’ template inheritance: https://christoph.luppri.ch/articles/2017/09/03/change-sidebar-content-for-certain-rails-controllers/

Rearmed-JS v2.0.0 Released! - Make your JS code relaxing and readable

I just released v2.0.0 of my plugin Rearmed-JS. This library is a collection of helpful methods and monkey patches for Arrays, Objects, Numbers, and Strings in Javascript that will make your code more relaxing and more readable by taking inspiration from Ruby. Works in the browser and NodeJS. See the changelog for more details. https://github.com/westonganger/rearmed-js

Loading older posts