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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Let’s create simplest rails application ever! It’s not even a CRUD, just CR :) Post on Medium on how to create simple nickname generator on ruby on rails with me: https://medium.com/@forever_frey/yet-another-simple-ruby-on-rails-application-a6b4a87d96a6
Rewriting one simple HTML escaping function from Ruby standard library in C speeds up rendering up to 4x. Read the whole story here: http://ruby-performance-book.com/blog/2016/02/is-ruby-2-3-faster-rails-erb-template-rendering-performance.html
This article describes how to bypass Rails 4 forbidden attributes in the controller or Rails 3 mass assignment protection for one time. http://solidfoundationwebdev.com/blog/posts/how-to-bypass-rails-forbidden-attributes-or-mass-assignment-protection-for-one-time
I’ve had many interesting conversations with experienced Ruby/Rails programmers recently. One of the topics that often pops up is when it makes sense (for us) to still use Rails, given the variety of other choices. This blogpost aims to summarize some of views here.
For a production Ruby on Rails application, uptime is paramount. Altering the structure of an application’s persistence layer is an operation that competes directly with uptime. Specifically, removing a table column within a relational database causes issues with the ActiveRecord ORM. This particular pain point has been removed as of Ruby on Rails 4.0.0, saving developers a lot of headache and greatly reducing the need for structural change coordination.
Hello, As a follow-up idea to the Jekyll Docu (Book Edition). Another idea / experiment: Let’s use the READMEs of all the great plugins and tools for Jekyll in the Octopress 3.0 toolkit and reformat it into a single-page black ‘n’ white book. Still early and a work-in-progess. See the source repo and the auto-generated book page using - of course - “plain” Jekyll w/ GitHub Pages. Let us know what you think. Has anyone migrated to Octopress 3.0 (from 2.0)? Cheers.
High instrumentation overhead causes developer pain. We’ve open-sourced our benchmark tests at Scout and have our first round of results. Let us know how your experience compares.
Hi, I started building a Rails apps monitoring tool a year ago. It started as a side project for my own needs. I wanted to track performances and errors for both requests and background jobs. Later with the help of a designer friend it gets a pretty nice UI. Then I decided to launch it to see how it goes. So I take this opportunity to share it and I am still looking for feedbacks. Here is the link https://www.rorvswild.com
Hello, The idea is simple: Let’s use the (official) great and fantastic Jekyll documentation and reformat it into a single-page black ‘n’ white book. Still early and a work-in-progess. See the auto-built book page using - of course - “plain” Jekyll w/ GitHub Pages. [more inside]
The interweb is currently filled with some poor advice about how to seed a counter cache column via an ActiveRecord migration. This article explains how plain SQL will make your migrations more straightforward and your next deployment run faster.
When you have a belongs_to or a has_one/has_many (with or without :through) association defined on your model, you will in many situations benefit from defining scopes in your model that reference your association. Check out this article for more, and hope you enjoy!
This article describes adding comma’s to large numbers to improve readability. http://solidfoundationwebdev.com/blog/posts/how-to-add-comma-s-to-to-numbers-in-ruby