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.
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.).
MiniTest is not "Just Ruby", it is "Just Rails"
Recently, MiniTest have received decent amount of praising for being “better, less magic” Ruby testing solution than RSpec we all love. In the post, we’ll investigate whether MiniTest is really good Ruby (spoiler: no, it is not), and what is it: Ruby way. Also you can join reddit discussion of the matters.
macOS and macOS Config 1.0.0
With macOS Sierra released, these two projects (written in Bash – no other dependencies) provide a way to setup new machines using macOS Sierra and your development tools loaded and configured: [more inside]
Developing as a developer - a journey through learning
Learning new things can sometimes be difficult and frustrating no matter how motivated you are. I have gathered and wrote down some ideas, thoughts and advices from my journey as a Ruby on Rails learner (but I think that it has a lot of universal truths that can be applied in other topics). I hope that some of you will find useful tips, inspiration or motivation to share their stories: http://blog.ragnarson.com/2016/10/07/developing-as-a-developer.html
How to make your Rails Application Multilingual
Most of the world doesn’t speak English. That’s where internationalization and localization come in. Rails has a great i18n API. It provides an easy-to-use and extensible framework for translating your application to a single custom language other than English or for providing multi-language support in our application. Check out Rails gem approach, MySQL approach and a Multilingual Rails structure
Benchmarking Ruby methods
A short look on how to use Ruby’s benchmark module using the example of zero?
vs ==
https://christoph.luppri.ch/articles/2016/10/09/is-x-or-y-faster-in-ruby/
VIM configuration for Ruby and Rails development walktrough
Vim config can be hard for newcomers. This is a walkthrough of my vimrc file that works with Ruby and Rails perfectly http://janjiss.com/walkthrough-of-my-vimrc-file-for-ruby-development/
React on Rails
How we implemented react server side rendering with NodeJS and Rails at Reverb
Deploying a rails app with Docker compose
In this article I will assume we have a ruby on rails application that is using a database to store some data, and capistrano for deployment and you want to deploy in on your server but instead of deploying directly on your server you want to dockerize the whole project to give it a separate environment and keep it away from your other applications. [more inside]
opsworks_ruby – manage Ruby deployments on AWS OpsWorks Chef 12 stack
Half a year go, AWS dropped their out-of-the-box support for Ruby applications. It is still remaining in the Chef 11 stack, but if you wish to use a new Chef 12, you are on your own. That’s where opsworks_ruby kicks in - it allows you to leverage all the goodies of AWS OpsWorks (like applications, layers, connected RDS etc.) just the way Chef 11 stack did, without any extra JSON configuration. This is a much simpler solution, than implementing your own recipes (like application_ruby for example) and keep track of all those JSONs all the time. And besides, it includes many framework, web and app servers out of the box. [more inside]
Bots, Bots, Bots - Botstack Quickstart - Build Your Own Messenger Chatbots w/ Ruby
Hello, David Mann (of Lazy Deejays fame - winner of Vienna’s 1st Bot Hackathon) has put together a (free, open source) botstack that lets you build Facebook messenger chatbots with Ruby (and Rails) in minutes. Ready-to-use Botstack modules include: Reply, Emoji, Web Search and more. Find out more ». Have you built any bots in Ruby? Let us now. Update: New Article by David Mann - Hello World! Botstack - A quick introduction to the botstack framework for rapid chatbot development.
Using Vue.js as an Alternative to Rails Nested Forms
Here is a quick post about using Vue.js to handle multiple models in the same form in a Rails app. This is an alternative to nested forms and accepts_nested_attributes_for: http://www.rymcmahon.com/articles/9