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.
Untangle your Domain Model from the Database
Segregating your Domain model from the concerns of the database, by using the repository pattern built on top of your favourite Object-Relational Mapper http://insights.workshop14.io/2015/08/09/untangle-your-domain-model-from-the-database.html
Efficient Redis Caching Through Hashing
Boost cache performance and memory consumption in Redis through cache sharding, an intelligent way to utilize the Hash type. http://sorentwo.com/2015/08/10/efficient-redis-caching-through-hashing.html
Building a payment form in Volt with Stripe-Opal gem (video)
In Episode 11, I build a book pre-order page using the Volt framework.
Why Rust? From a Rubyst point of view
I first heard of Rust from a coworker about 6 months ago while I was learning GO. My background in programming comes solely from learning Ruby, specifically Ruby on Rails. [more inside]
New Jekyll Starter Themes (Minimal, V2) For Classic Static Web Sites @ Planet Jekyll
Hello, I’ve put together two new static site (ready-to-fork) starter themes for “classic” web sites (e.g. just some web pages and not a blog with an archive and comments etc). The more “advanced” V2 starter theme includes: 1) Shared (common) template/page building blocks using _includes e.g. head.html, header.html, footer.html etc. 2) CSS preprocessing using Sass/SCSS e.g. _settings.scss with $link-color etc. 3) Nav(igation) menu (auto-)built using a configuration / data block; And more. Cheers.
PS: Looking for more themes? See the Dr. Jekyll’s Themes directory.
How Do I Deploy Discourse with Mina
I wrote blog post about Discourse deployment with Mina http://www.railsmine.net/2015/08/how-do-i-deploy-discourse-with-mina.html
How to Parse Upcoming Email in Rails Application
I’d like introduce an article: How to setup SendGrid Parse API and parse upcoming email in Rails application? http://rubydaily.net/blog/2015/08/08/how-to-receive-email-from-rails-application/
Celluloid, Nice To Meet you
I wrote a blog post about using Celluloid supervisors to keep a background task running, even if it raises exceptions. [more inside]
Using a Rails' Mail Interceptor to Test Email
I’m currently setting up a large number of emails as part of our Rails application. I like to run them through Email on Acid. However, this presents a problem in development as the images are hosted locally. I used an interceptor to rewrite the image paths. Read more
PS2Format gem, batch transfers made easy
Do you need to make bank batch transfers in Portugal for common things such as payroll? Check out PS2Format gem! [more inside]
Rails API Auth
Rails API Auth is a lightweight Rails Engine that implements the “Resource Owner Password Credentials Grant” OAuth 2.0 flow as well as Facebook authentication and is built for usage in API projects: http://log.simplabs.com/post/126094084650/rails-api-auth
Use An Ask, Don’t Tell Policy With Ruby
Pat Shaughnessy explains how to set up code in Ruby so it states the solution to your problem, even if you don’t know what that solution is: Use an Ask, Don’t Tell Policy.
Benchmarking exceptions in Ruby – yep, they’re slow.
Just how much slower are exceptions than other flow control mechanisms? In this post we use a simple benchmark to find out. - http://blog.honeybadger.io/benchmarking-exceptions-in-ruby-yep-theyre-slow/
Do paid packages work?
A new audio podcast with special guest rubyist Mike Perham where we discuss his business of building packages, both paid and open source. [more inside]
Testing your Rails application with Docker
Learn how to run tests in multiple containers at the same time for your rails application using Codeship and Docker. [more inside]
Automating ssh key deployment in Rails apps with Ansible
Wrote about how we manage ssh keys across our rails servers with Ansible https://devblog.supportbee.com/2015/08/05/automate-ssh-key-deployment-with-ansible/
Rails Range Request Streaming
Stream your files from your Rails application via range requests. [more inside]
Hold on, I know where it leads...
My thoughts on building the apps with frameworks. Rails mostly but applies to about anything… https://www.amberbit.com/blog/2015/7/29/hold-on-i-know-where-it-leads/
Gemfly: Update your Gemfile gems
A simple online tool to update the version of your Gemfile gems. Pull requests are welcome. http://gemfly.findings.co
Test Doubles: in theory, in Minitest and in RSpec
We’ve all heard about doubles, mocks, stubs, fakes and spies. Let’s see what each an every one of these really mean, where we should use them and how the popular testing frameworks for Ruby implement these. Read the article here.
Tips for hiring the right developer for your team
Finding and hiring the right software developer can make or break your team. The interviewing process can make sure you find people who are great at writing code and a good fit for your company culturally. You also need to make sure that the work samples you review before hiring them, or that they do during the interview, will reflect how they will perform on the job. [more inside]
Generating specs for your rails application
With this gem you can generate specs for your rails application. Those generated specs are based on your model relations, validations, database representation, etc. One can even generate specs based on your routing and your controllers. [more inside]