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.
Mapping JSON to ActiveRecord Objects with Representable - Part III
In part 3 of my series on API consumption for novices I’m doing a whirlwind tour of the major features provided by the Representable gem for mapping data from JSON documents to ActiveRecord objects. Representable makes it super easy to handle nested attributes as well as create collections of associated objects!
How to backup your postgres database on SpiderOak using Dokku
Now that we know how to setup a rails application using Dokku on a DigitalOcean droplet, it might be a good time to think about automating our postgres backups.
Milestoner 1.x.x
Milestoner is a gem that provides a command line interface for Symantic Versioning of your Ruby projects. It ensures all commit messages are grouped, sorted, and added to each Git tag body per milestone so that you have an auto-documented version history of your project. These tags (i.e. releases, milestones) can be easily viewed via the GitHub releases (tags) tab of your repository (thanks to the new GitHub UI). You can also view this info from the command line via git tag --verify <your Git tag>
. By wiring Milestoner into your release/publish process for each production deploy you now have a reliable way to snapshot your work and provide valuable details/debugging information for each milestone (not to mention consistent versioning). Enjoy!
Using Repository pattern to migrate Rails app from MongoDB to PostgreSQL
Have a MongoDB + Rails application? You obviously want to migrate to PostgreSQL ;). Here is an interesting approach on how to use repositories to do that. Brought to you by Rafał Maksymczuk from AmberBit’s Ruby development team.
State Machines
Kamil Bielawski from AmberBit’s Ruby developers team, is having a fresh look at state machines in Ruby, using Statesman gem.
How to deploy Rails App on a VPS
This time, a beginner-level, step-by-step guide on how to deploy Rails application to a VPS. Post by always awesome Marcin Nieborak
Rails 5 Basics : Relationships
Read the tenth chapter from Rails 5 Quickly book online : Relationships
Rails 5 Basics : View Duplication
Read the ninth chapter from Rails 5 Quickly book online : View Duplication
Getting Started Guides with Jekyll - the free static site builder
Hello, Interested in getting started with the static site builder / generator of the year 2015? Two new in-depth getting started guides with Jekyll include: [more inside]
Rails 5 Basics : Delete Article
Read the eight chapter from Rails 5 Quickly book online here Delete Article
Service objects with CRUD interface
Uniform CRUD interface to all of your domain objects (models and services) and why this is useful. Get rid of if @model.save redirect_to
in your controllers http://undefined-reference.org/2015/12/05/services-with-crud-interface-usage.html
Exception Notification v4.1.2 has just been released
Exception Notification v4.1.2 has just been released, including better formatting for Slack notifications https://rubygems.org/gems/exception_notification/versions/4.1.2
How Reactive Data Binding Works in Volt
Episode 20 shows how Volt keeps data and UI in sync at all times. It’s pretty neat!
Why and how to test Rake tasks in your Rails application
Most of us write some Rake tasks and completely forget about them. In fact, we rarely give any love to our Rake tasks. Well, I think it’s time we change that. Let’s see why and how we can test our Rake tasks.
Relaxed.Ruby.Style
A more liberal style guide for RuboCop. It comes with a config file that deactivates some of RuboCop’s features. It is meant as a less restrictive foundation that you can use directly or base your style discussions on.
Rails 5 Basics : Show Article
To learn a bit of magic behind Rails 5 routing, read the seventh chapter from Rails 5 Quickly book online here Show Article
10th edition of RubyIssue(s)
This is the 10th episode of our guided tour through the Ruby universe of issues. Bonus: Bi-monthly email delivery. In this episode you will read about issues from MailCatcher, AsciiDoctor, ROM and Errbit.
The Ultimate Full Stack Rails Course
A full stack online course for people learning to code showing them how to design, build and ship software products with Rails (and other technologies). http://fullstackrails.co/. The course is in beta and only taking in a limited number of students. Early bird access will be available.
Rails DB - version 1.0
Rails DB finally reached version 1.0, one last thing which I wanted to finish before release was - creating records. So now Rails DB is very similar to ActiveAdmin or other similar gems + but also has own set of cool features. [more inside]
Pillars of the Rails Monitoring Stack: 2016 Edition
From uptime to logs to app monitoring, we cover our Rails Monitoring Stack heading into 2016.
Ruby Deep Dive
A new course for intermediate Ruby developers that can help you boost your skills and confidence. http://blackbytes.info/ruby-course/