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.
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 :)
Rails 5 handles DateTime with better precision
Rails 5 handles DateTime with better precision [more inside]
Testing Rails Simple Guide — Part 3
Honestly, I feel confused when I was first learning the topic “testing in isolation”. I always struggle these questions: “What Stubs, Mocks and Spies means?”, “What purpose of using these techniques?”, “Which techniques should we use to apply certain scenarios?”. In this simple guide, let try to demystify these techniques by using the concrete examples. [more inside]
How and why should you use JSON API in your Rails API?
JSON API allows you to stop thinking about the API design while still having great opportunities to grow its functionality. In this blogpost I show why it is beneficial for you and how to use it together with Rails.
How Not to Lose Performance with Frozen String Literals in Ruby 2.3 and Later
Frozen string literals are supposed to speedup the code. But majority of Ruby and Rails code needs patching to support this feature. And it turns out it’s easy to make performance worse in the process. Learn how to avoid making this mistake: http://ruby-performance-book.com/blog/2016/02/is-ruby-2-3-faster-how-to-prepare-yourself-for-frozen-string-literals-and-not-lose-performance.html
All About Foreign Keys
The meaning of “foreign key” in Rails differs based on context. This post explores further. Hope you enjoy!
swift_client 0.1.2 with identity v3
Just released version 0.1.2 of swift_client, a powerful client for OpenStack Swift. This release brings support for openstack identity v3.
Install Nginx and Passenger to deploy Rails app
Read more: http://goo.gl/jFVrqY #nginx #passenger #rails #luanotes