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.
Debugging Ruby programs on OSX with lldb
Here’s a quick look on how to use lldb, the debugger that ships with XCode, to debug your Ruby programs: https://christoph.luppri.ch/articles/2016/10/17/debugging-ruby-programs-on-osx-with-lldb/
[Screencast] Rails API - Active Model Serializer
Using ActiveModel::Serializer, learn how to create the JSON responses for your Rails API application. ASM is a great object oriented approach to building a JSON API. https://www.driftingruby.com/episodes/rails-api-active-model-serializer
Rack::JetRouter 1.2.0 released -- a very fast routing library
Rack::JetRouter 1.2.0 released. Rack::JetRouter is a very fast routing library for Rack application, derived from Keight.rb framework.
London Ruby Unconference is this weekend!
There are a few last tickets for this event taking place on Saturday, Oct 22, 2016 in Holborn, London, Uk. [more inside]
Postgres and the Rails Sandbox
This post demonstrates how to automatically “heal” an aborted Postgres transaction in a sandboxed Rails console.
Top 33 Jekyll Plugins & Extensions (by GitHub Stars ★) - And the Winner is...
Hello, Still early and rough - I’ve put together a directory for Jekyll plugins & extensions listing the top 33 gems (ranked by GitHub stars ★). And the winner is… Cheers. PS: Add your plugin! How it works? Add a new entry in the Awesome Jekyll Plugins page. Example: [more inside]
On HexaPDF and Releasing Early
After my lightning talk about HexaPDF at Euruko 2016 I was asked why I haven’t released the source code to HexaPDF, yet. I have my reasons and in this post I will shed some light on them.
Creating Machine Learning Systems with JRuby
Ruby is not best-known for addressing machine learning tasks. Yet, it has an excellent reputation for fast prototyping. My latest Sitepoint article Creating Machine Learning Systems with JRuby explains how to prototype machine learning systems with Ruby by classifying BBC sports articles.
How we save money by using DDD and Process Managers in our Rails app
How we save money by using DDD and Process Managers in our Rails app shows how we detect problems with one payment gateway and switch to another one in the moment of crisis.
Static websites with webgen
The static website generator webgen has been in development for over a decade now. It provides the essential functionalities out of the box and is easy to use, even for non-programmers. Designed to be a general purpose static website generator it can be used for any kind of website, not just blogs. [more inside]
Is it important to write tests when you're coding for yourself?
You have a flash of inspiration for a new program to write. You open your editor to start working on it, and hear a little voice in your head saying, “You know, you really should test your code…”
Ways of Handling PayPal Refunds in Rails
PayPal Checkout includes simple to robust payment solutions to allow merchants and developers to select an integration option most appropriate for their site and their customers. Here’s Some of the Ways of Handling PayPal Refunds in Rails
Tips for Writing Fast Rails: Part 1
Is your Rails application taking forever to respond? Is ActiveRecord being super slow loading a big set of tables? Here are 3 tips for writing fast Rails applications: http://www.ombulabs.com/blog/performance/rails/writing-fast-rails.html
Simple way to create public pages
Have you ever heard about public pages in Ruby? And what does it mean? So, it’s generally understood, they are used when there is no need for dynamic info or pulling from the database. As usual Ruby on Rails developers implement some pre-built gems. But I would like to show you another way to create public pages in your rails apps. http://blog.active-bridge.com/simple-way-to-create-public-pages
Ruby Facets Episode 3: Bundler 1.13, sources, Elm & Rails, webpack, Rails & Capybara
The third episode of Ruby Facets came out yesterday. It covered the recent release of Bundler 1.13, the multiple source vulnerability, adding Elm to Rails, the Asset Pipeline & webpack, and Rails’ upcoming Capybara integration.
How to generate & add sitemap to your Rails Application
In case your site has a couple of broken internal links or orphaned pages on it, by mistake, that cannot be visited in any other way, a sitemap can help your visitors reach them as well. However, it is any day better to let these errors not make it to your website in the first place. So, this article is all about how to generate and add a sitemap to your Rails Application.
Ruby on Rails view components with Trailblazer Cells
If you’ve ever wonder how to create reuseable views at rails app check my last blog post: Ruby on Rails view components with Trailblazer Cells. I will show you how you can create easy to maintenance, reusable views at rails app with trailblazer cells gem.
New gem aims to be a simpler all-in-one error solution for your projects
After hacking together multiple gems to get a full error solution comparable to the likes of airbrake and raygun, and not getting anywhere good, I created an open-source gem Errdo that aims to be a simple, quick error tracking, logging, and notifying solution for smaller projects.
Refine Your Ruby Util Objects
For some time now I’ve followed a pattern of using utilities to avoid extending core Ruby objects. While this approach avoids the perils of monkey patching, the experience has always bothered me; it’s not very Ruby-like. Here’s an alternative that uses refinements.
Accidental duplication
Does every similarly looking peace of code should be considered duplication? The answer is here: Accidental duplication.
Apphera Social Media Mining Enterprise version now open source
Please find the updated version of Apphera open source social media monitoring and engagement platform at https://github.com/nikoma/apphera-core Over the next days features previously only available in the enterprise version will be available on Github as well.
New Qk/Quik Starter Scaffold - Jekyll Gem-Packed Theme - $ quik new jekyll-theme
Hello, Starting w/ Jekyll v3.3 you can package your themes (layouts, includes, assets) into gems. To show how easy it is to add new scaffolds to quik/qk - the missing code generator / scaffolder for ruby I’ve put together a new scaffold for gem-packaged jekyll themes that mirrors/copies the $ jekyll new-theme command.
Try: $ quik new jekyll-theme to get started.
This will use the jekyll-theme.rb quik starter script and
the quickstart/jekyll-starter-theme template (just a plain git repo). ++ If anyone tries out qk/quik, let us know what you think. ++ PS: You’re invited to add your own scaffolds (gem starters, sinatra starters, jekyll starters, etc.).