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.
Newbie in Ruby? Come see my blog .. (BR)
Hey, my name is Cecília and I own the blog “Me, Ruby Girl”. Please, take a look.
Want to use ES6 with Rails right now ? Webpack to the rescue
This article is about setting up a Rails 4 application so you can write complex JavaScript features using ECMAScript 6.
Bots on Rails: part one, looking for an idea and setting things up.
in this article we will start building facebook messenger bot on rails. First part is about setting things up, looking for an idea of basic facebook bot and getting familiar with prerequisites.
Ruby 2D: Make cross-platform 2D applications in Ruby
Create 2D apps, games, and more with the Ruby 2D gem. Run your app like you would any Ruby script, build it for the web with Opal, or compile it natively using MRuby. Check out Ruby2D.com to get started.
3 Useful Lessons from Installing Thinking Sphinx on Engine Yard
Installing Thinking Sphinx on Engine Yard soon? Here are three helpful tips on a successful Thinking Sphinx installation for a Ruby on Rails app with a dedicated utility instance.
What's new in Rails 5.1
A new version of Rails was announced a few days ago, is the first beta of Rails 5.1. It does not come with breaking changes but it does embrace Javascript in a way that never seen before in Rails.
Today we hit 1000 stars on GitHub
Super excited to share that the Helpy project hit 1000 stars on GitHub!! I want to thank the 45+ people who have made contributions and suggestions, bug reports, etc. that have helped to make this possible! Blog post: https://goo.gl/uZvqvt GitHub: http://github.com/helpyio/helpy
Prototypes in Ruby and the strange story of dup
How you can duplicate an Active Record object in Rails, why would you do it and how ruby is a strange language sometimes. Also how Rails tries to handle this strange quirks. All of that in the newest article on Arkency blog:
How To Inherit Templates When Creating Custom Fields in Administrate
One of the biggest (and unexpected) pains for users of Administrate is that custom fields don’t inherit templates. Luckily there’s a solution using to_partial_path which works and requires a lot less effort than copy/pasting the original views. Read about it here
http://www.carlosramireziii.com/how-to-inherit-templates-when-creating-custom-fields-in-administrate.html
Comparison of some of the best Ruby CMSs
Some weeks ago, we compared some of the most-used Ruby content management systems because we needed to do some research for a client. Hopefully, this’ll help you to choose the best option for your next project. [more inside]
Your Perfect Guide to Integrate Bootstrap 4 with Rails 5
Your Perfect Guide to Integrate Bootstrap 4 with Rails 5
How to Get Production-like Error Responses in Your Rails Tests
In the Rails test environment, when your app responds with an error, it shows the detailed exception page. That’s ideal for unexpected errors, but for expected error responses that you want to write tests for, your app ought to respond as it would in production. Here’s a quick way to do it:
Acra, database protection suite
Protect Ruby web apps with Postgres backend with strong cryptography and intrusion detection daemon. Microservice-oriented (decoupled reads & writes), selective encryption, highly customizable, friendly OS license (Apache2). GitHub, Official announcement post.
From implicit magic to explicit code
In the 4th article in my series I show how to build a custom initialize method to handle tracking important data to be used by a background job:
unibits
A command-line tool that visualizes UTF-8, UTF16, and UTF-32 in the terminal. Supports valid and invalid encodings!
Get Up and Running with Rails API
Rails 5 now makes it a piece of cake to get started writing an API-only application. In this post, we’ll go through what to do in the first 5 minutes working on your Rails-based API.
8 Incredible Ruby on Rails Gems to Try
From authorization to chart creation, here are eight Gems that are tried, tested, and officially super useful.
Using Bootstrap in a Rails 5 App(Including using a Bootstrap theme)
I have been adding Bootstrap to pretty much every Rails app I create these days and always seem to need to go back through my code to see the gems, layouts, and partials I use to build the App. I decided to capture that knowledge in a post here: [more inside]
ActiveRecord#Enum translation
Lightweight gem to handle your ActiveRecord models enum translations. [more inside]
A Top Shelf Web Stack—Rails 5 API + ActiveAdmin + Create React App
Blending a rock-solid API and CMS with the absolute best in front-end tooling, built as a single project and hosted seamlessly on Heroku.
Shared Libraries: How Ruby and C Work Together
If you take a look under the hood, you might be surprised at how much Ruby depends on C. MRI is written in C. Gems use C for performance. And much of Ruby’s standard library consists of Ruby wrappers for C libraries. In this article we’ll discover how this is possible by building our own small C library and using it in Ruby. http://www.rubyletter.com/blog/2017/03/03/using-shared-libraries-in-ruby.html
How to Make Your Classes More Powerful by Implementing Equality
Did you know that == is a method & not just syntax? You can use this fact to make your classes more powerful:
Rearmed-JS - Write your Javascript in a natural way like you write your Ruby code!
When your working with Javascript, do you ever get choked trying to do something that would have been a dead simple iteration or string method in Ruby but in JS it ends up being the most disgusting code ever. Well I just released my plugin Rearmed-JS that solves a large part of this problem. This library is a collection of helpful methods and monkey patches for Arrays, Objects, Numbers, and Strings that will make your Javascript natural feeling. Works in the browser and in NodeJS. https://github.com/westonganger/rearmed-js