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.
Upgrading from Passenger 4.0.60 to 5.0.25
Upgrading Passenger improved the performance. From 2.4 seconds page load time to 1.7 seconds in Passenger 5.0.50. Learn how to Upgrade from Passenger 4.0.60 to 5.0.25
Clean Up Your Rails Helper File
Latest post from Jordan Maguire over at the TFG blog, cleaning up your rails helper file.
Static Times Q&A with Thomas Leitner - author of the kramdown library and tools
Hello, I’ve started a new Q&A series for the Static Times news channel. Today let’s welcome Thomas Leitner - author of the kramdown library and tools (in ruby) for markdown. See the Q&A #1 w/ Thomas Leitner for the full interview text. Cheers.
Wye Tech News #12
A new issue of our weekly compilation of interesting news and articles about Ruby, Rails, JavaScript and web development related stuff that we found during the week.
Flash messages with proper model names using Trailblazer operations and Responders
Trailblazer is a thin layer on top of Rails. It gently enforces encapsulation and can be smoothly integrated with other gems and libraries. In this blog post I explain how to integrate it with Responders gem and make both of them work together. Flash messages with proper model names using Trailblazer operations and Responders
How to Make SimpleForm Inputs Disabled By Default In Rails
Ever want a default option applied to all simple_form inputs in a form? Heres how: http://solidfoundationwebdev.com/blog/posts/make-simpleform-inputs-disabled-by-default-in-rails
Basic signup and authentication in your Rails app
Blog post explaining how to implement signup and authentication without any external gems.
How to run Ruby scripts on AWS Lambda using Ansible
Looking to try out AWS Lambda with some Ruby code? If you also happen to be a fan of Ansible, use the Ansible role I created.
A Swift library to talk with ActionCable
If you have an iOS app and want to use the Rails 5’s ActionCable, the ActionCableClient library makes it really easy to do.
Experimenting with explicit contracts with Ruby
Three approaches to build contract-based tests with Ruby, using a API testing scenario as an example. [more inside]
Hyde Press- New Free Book -Jekyll Themes 'n' Templates (Starters, Blogs, Books, etc.)
I’ve added a new volume to the Hyde Press Bookshelf titled “Jekyll Themes & Templates” that includes ready-to-fork themes ‘n’ templates for sites with just pages, blogs (w/ posts, feeds, archives, etc.), single-paged sites, books, resumes, etc. Any theme you want to see included? Let us know. Cheers. PS: What’s Jekyll? It’s a free static (web) site builder / generator in Ruby.
5 signs you are ready for that Junior Rails Developer position
You have learned yourself some Ruby on Rails. Perhaps, you’ve also done some just-for-jun projects while learning to practice your skill. At some point, you might be starting to wonder if you are ready for a job as a Rails developer?
Top Tips for Ruby on Rails Beginners
Ruby on Rails has been powering a lot of website these days and why not, it has one of simplest framework to work with. With so much hullabaloo, it is so easy to fall under its spell. If you are among those smitten by Ruby on Rails and interested to pursue it, here are some tips to help you. Read more about Top Tips for Ruby on Rails Beginners
On migrations, JSONB and databases in general
Another blog post, this time on migrations, JSONB and databases in general.
Hyde Press - New Free Book - Jekyll Importers & Syndicators
Hello, I’ve added a new volume to the Hyde Press Bookshelf titled “Jekyll Importers & Syndicators” that includes all importers (e.g. Joomla, Ghost, Drupal, WordPress, etc.) plus as a bonus the jekyll-planet gem that lets you (re)publish articles using a feed reader (e.g. planet pluto). PS: What’s Jekyll? It’s a free static (web) site builder / generator in Ruby.
Different ways how to do Rails validations
Ruby on Rails has a decent way how to ensure that invalid params won’t end up in DB. Problem with Rails Validators is however that they are bound to a class rather than Instance object. In article http://www.eq8.eu/blogs/22-different-ways-how-to-do-rails-validations we will have a look on few workarounds.
Pronto now supports ESLint!
Pronto gem performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. It can output results in various formats, including pull request comments. And now it added support for ESLint, pluggable linting utility for JavaScript and JSX. Check it out: Pronto and pronto-eslint.
How DHH organizes his Rails controllers
DHH talks about how splitting controllers into smaller chunks has improved his code.
New gem name_splitter
The name_splitter gem converts a full name string into name parts: salutation, first_name, middle_name, last_name, suffix.
Bundler: Bump 1 gem and touch nothing else with bundle-unlock
A tiny script to only bump 1 gem and touch nothing else. [more inside]
(╯°□°)╯︵ ┻━┻ - Table flipper gem
I just created table_flipper, another useless gem which prepends the table flipper to exceptions.
an example custom rspec formatter
I wrote a customer rspec formatter to help me navigate between spec output and error locations in the spec source. It’s explained in the post “dot errors rspec customer formatter”.