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.
Adding rubocop to a legacy project
Adding rubocop to an existing legacy project can be done in 20 minutes with some iterations and use of autogeneration of a .rubocop_todo.yml. http://www.rojotek.com/blog/2017/04/06/adding-rubocop-to-a-legacy-project/
Fae - CMS for Rails. For Reals.
We recently open sourced a Rails CMS engine that we’ve been developing and using internally for a couple years. Check it out! https://www.faecms.com/
Versioning a Rails API
Introducing versions into an API application doesn’t have to be difficult or divisive. If you understand why you might need it and how best to implement it, the process can be done before you know it.
Testing a New Page Loaded (or not) with Capybara
Mmm, you probably won’t need this. Its a replace_page matcher for testing that a page was (or was not) reloaded and have no other way of checking https://www.wetestrails.com/blog/capybara-test-page-loaded
5 Tips for More Effective Capybara Tests
I wrote an article about some handy features in Capybara to help people write better tests. Here’s the link.
Importing invalid legacy data with Rails
I just wrote a new blog post on my recent experience in importing legacy data with Rails.
Tracepoint and Array#size
Notes about some interesting behaviors around Tracepoint and Array#size.
How I wrote the http-client for mruby
Hi guys. This is article about how I wrote the http-client for mruby
Popular Job Interview Questions for Ruby on Rails Position
Here you can find the list of popular job interview questions for Ruby on Rails Developer position with ready answers: https://www.nopio.com/blog/ruby-rails-popular-job-interview-questions/ Hope this will help someone in getting his dream job!
Nondeterministic Turing Machines
Create and run a nondeterministic Turing machine using NTM simulator. https://github.com/fade2black/Ntm
tty-progressbar v0.11.0
The newest release of tty-progressbar fixes byte formatting tokens and extends available byte sizes.
New Pluto Planet Guide (Book Ed.) - Free Planet (Static) Site Generator in Ruby:
Hello, I’ve put together a new Pluto Planet Guide (Book Edition). What’s Pluto? Pluto is a free planet (static) site generator in ruby that lets you auto-build web pages from published feeds w/ embedded ruby (ERB) templates / themes and much more. For a real-world example of Pluto live in action, see the OpenStreetMap Blogs - (setup/config/templates) Cheers.
Why and How We're Using Tachyons with Rails
I wrote up a quick post on our decision to use Tachyons with Rails. If you haven’t heard of Tachyons, or considered it, it’s an alternative to the popular css frameworks. It helped us launch our MVP–we didn’t have to write a ton of styles, and we didn’t have to fight with bootstrap.
Configuring New Rails Projects With .railsrc and Templates
Templates and .railsrc files have been around since Rails 3.x, but after 10 years of Rails development I’m just finding out about this now. Learn from my ignorance and simplify setting up all your future rails projects.
[Screencast] Page Specific Javascript in Ruby on Rails
https://www.driftingruby.com/episodes/page-specific-javascript-in-ruby-on-rails Sometimes you may find yourself with an application that has javascript that needs to execute only on a specific page. This episode lays the foundation to easily manage page specific javascript.
Action Cable Hello World with Rails 5.1
A screencast about the use of Action Cable in Rails 5.1 (5:29 min). [more inside]
Add class methods and instance methods to class by including one module
Learn how to add class and instance methods to class by including one module using module call back. [Read more]
TheOpenCMS. Weekly report #4
Hi there! There is a weekly report about my progress on my CMS project Changelog vol. 4
Learn Jekyll by Example - Vienna.html Showcase - 10+ Static (Open Source) Websites
Hello, in the Vienna.html Showcase I’ve collected more than 10+ great (open source) static websites built w/ Jekyll ‘n’ friends. Learn Jekyll by example - study the source of real world sites built w/ Ruby and Liquid templates. Sites include personal blogs, corporate team blogs, books, documentation, non profit foundations, podcast radio shows, open data world references, bookshelfs and more. Happy publishing with Jekyll ‘n’ friends. Cheers. PS: The Vienna.html user group meetup site is (of course) itself an open source showcase built w/ Jekyll ‘n’ GitHub Pages ;-).
Why classes eventually reach 50 columns and hundreds of methods
Find out what happens and what we often miss as developers when our applications continue to grow for a long time [more inside]
Segment Open Fellowship 2017
The Fellowship is a three month long program supporting three to five open-source developers with $8k per month to focus full-time on their project, no other strings attached. More details Segment Open Fellowship 2017
A silly coding error around case/when
A little writeup of a bug in my code around case/when syntax.