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.
Rails: MVP vs prototype
The thing that Rails allows us is to build a real MVP and not only a prototype. That’s what Rails is optimized for. [more inside]
Testing Rails applications in the life of a freelancer
An opinionated post about automated testing in general.
"Fuuu", a gem to automate Stack Overflow searches
Copy/Pasting error messages? So 2015! https://github.com/sophiedeziel/fuuu
How To Import Data From A CSV File In Rails Or Ruby
This article describes how to easily import data from CSV files in Ruby. http://solidfoundationwebdev.com/blog/posts/how-to-import-data-from-a-csv-file-in-rails-or-ruby
Common problems (and solutions) when starting Docker with Rails
There are a lot of blog posts out there explaining how to get started with Docker. But in our recent experiments we’ve run into a couple of issues, so we’ve compiled a list of our encountered problems and their solutions on our latest post. I hope it’s useful.
Why do you need arel?
I think Arel is one of the most underestimated gems. The post is about a real use-case scenario when Arel can be effectively better than ActiveRecord.
How to Send and Receive SMS with Ruby and Sinatra
Quick 5 minute video tutorial on how to send and receive text messages from your Sinatra applications.
Do You Believe in Programming Magic?
Richard Schneeman looks at what defines programming magic. Behavior that is “too magical” kills productivity, isn’t expected, and may go undetected. He uses Rails examples in his article.
Slides: Recurring events with Montrose
I gave a talk at the NYC.rb meetup on modeling recurring events in Ruby with the Montrose gem. Montrose bills itself as an easy-to-use library for defining recurring events in Ruby. It uses a simple chaining system for building recurrences, inspired heavily by the design principles of HTTP.rb. Slides are posted here: https://rossta.net/talks/recurring-events-with-montrose.html
How to access the Gmail API with Ruby
How to access the Gmail API with Ruby. A guide to accessing the Gmail API with Ruby. Useful for migrating email between accounts, performing detailed analysis of your archived messages, automating outgoing messages or extraction of data from incoming messages etc.
Yet another simple Ruby on Rails application
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
Rails/ERB Template Rendering Got Much Faster in Ruby 2.3
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
How To Bypass Rails Forbidden Attributes Or Mass Assignment Protection For One Time
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
Where and why I'm still using Rails
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.
Log Spy: A rack middleware asynchronously sending request log to SQS
Logspy is a rack middleware sending request log to Amazon SQS, making it a breeze to analyse or replay requests within a certain time period. https://github.com/mz026/log_spy
How to Remove a Column with Zero Downtime in Ruby on Rails
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.
Octopress 3 (Jekyll’s Ferrari) Docu Reformatted as a Single-Page B-n-W Book
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.
tty-prompt v0.4.0 release
The new tty-prompt enhances multi_select and select methods with :enum option which allows selection using numpad. It also adds traditional unix enumerated selection and terminal sliders. Enjoy!
How much overhead is added by New Relic and Scout? Benchmarks!
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.
[lesson #1] build less, but better software
Would you like to help your clients accelerate product development and business growth with Ruby APIs and Rails Engines? [more inside]
Finally a nice graph theory library for ruby
https://github.com/dirkholzapfel/abuelo … no more gists or untested graph code.
New Rails apps monitoring tool
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