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.
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”.
New gem env_compat
A gem to convert special character strings into, and out from, ENV friendly variables. Link: EnvCompat
Improving SPA loading time with Webpack (and why Sprockets is in your way)
I’ve just written an article about SPA loading time performance comparing webpack to sprockets: [more inside]
Delayed Job Progress
Made a little gem that extends Delayed::Job so you can easily track progress and provide some sort of visual feedback to users that trigger background jobs. [more inside]
Hyde Press - Free Books about Jekyll ‘n’ Friends - 1st Volume - Jekyll Style Guide
Hello, I’ve started a new imprint called Hyde Press - just a github org ;-) - that publishes free books about Jekyll ‘n’ friends. ++ The idea is to (re)use the great documentation out there and reformat it into single-page black’n’ white books. The first book in the series is the Jekyll Style Guide by Ben Balter et al. More upcoming. ++ Questions? Comments? Welcome. ++ PS: The books get - of course - built using the GitHub Pages service and Jekyll. Under the hood the books use the Manuscripts book format and a jekyll book theme from the Henry’s theme collection.
How to upgrade to Turbolinks 5
Upgrading to Turbolinks 5 is easier than you might think and just in time for the official release coming in the next week or two.
Rails 5 allows configuring queue name for mailers
We can now configure queue name for sending mails in Rails 5 [more inside]
Using anonymous modules and prepend to work with generated code
Can we overwrite setter methods created by a gem and call super ? Yes, we can
Developing plugins for Redmine
A small presentation on Developing plugins for Redmine for Athens Ruby Meetup #24.
Rails Configuration Options
Configuring your application is very easy in Rails, but what are your options and how can you prevent typing out Rails.application.secrets every time. Read more on: https://www.fritz.ninja/rails-configuration-madness/
Making GitLab Faster
In GitLab 8.5 we shipped numerous performance improvements. In this article we’ll take a look at some of these changes and the process involved in finding and resolving these issues. [more inside]