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.
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]
Vienna Opens World's First Dr. Jekyll Walk-In Clinic - Any Troubles w/ Your Site?
Hello, if you happen to be in Central Europe and have any trouble or questions about your (static) site don’t despair. In Vienna, Austria just opened the world’s 1st Dr. Jekyll Walk-In Clinic. Not near or from Vienna? No worries. Why not start your own Dr. Jekyll Walk-In Clinic in your city. Cheers.
Using Markdown with the kramdown Library and Tools
Hello, Thomas Leitner - the author of the kramdown gem - has posted the talk slides (in HTML) for yesterday’s Vienna.html talk titled “Using Markdown with the kramdown Library and Tools”. Thanks to Thomas for the great gem that starting May 1st will convert all Markdown pages with Jekyll 3 on GitHub Pages. Cheers. Did you know? kramdown includes automatic table of contents generation. Use {:toc}
. Or did you know? kramdown can also convert HTML back into kramdown source? On the command line use: kramdown -i html -o kramdown
What I learned building an app in Hanami
Hanami treads the same ground as Rails though I ran into some challenges while learning the “Hanami way”. I see a lot of potential in the Hanami framework and see it growing into a viable alternative to Rails in the near future. Read more about what I learned in my latest post https://rossta.net/blog/what-i-learned-about-hanami.html
Control flow operators need more love
A blog post about feared and neglected and
/or
operators, and why they are good for your code, making it clean and DRY.
How Elixir’s Ecto differs from Ruby’s ActiveRecord
I just wrote a blog post describing how the two differ :)