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.
Dear package, give git tags to your versions
While some package managers do it right, others don’t really integrate with VCS. Rubygems is no exception. Read more
Validating Uniqueness Of Field(s) In Accepts_nested_attributes_for
Uniqueness Validation with accepts_nested_attributes_for that takes into account those record which are marked for deletion
Potential Ruby friendly solutions to deal with UK marketplace payment scheme type
For an upcoming project, we had to research how to achieve a marketplace distributed payment scheme. Unfortunately, the sellers target being UK centric, it drastically reduced the solutions scope. Have a read and let us know if we forgot anything
fedux.org – Give away mock-up of a middleman website
Given you’re a professional website designer and would like to work on some wonderful project. This project might be about designing a new website with a blog and a shop for one of your favourite customers. To get involved in this project, she asked you to design a mock-up with your ideas first and send it to her. In this article I’m going to show you how you can give away your mock-up in an easy manner without setting up a full-blown web server stack. If you like my writing and don’t want to miss any new article, you may want to follow me on Twitter or subscribe to the news feed of my site.
Ruby 2.2.3 Binding Basics
Ruby 2.2.3 Binding basics such as binding, using binding with eval, local_variables, local_variable_set and local_variable_get. Watch it here
Effectively Debugging Capybara Feature Specs
Capybara/Selenium feature specs can be one of the most frustrating types of tests. There is a lot of unexpected behavior and many pieces to keep in mind. Code runs in separate threads, and both AJAX behavior and Capybara find methods create timing issues. The aim of this post is to describe a workflow that makes debugging more efficient. Effectively Debugging Capybara Feature Specs
Enhancing Logs With Cache Timing
Enhancing logs with custom timings illuminates where render time is really being spent. Learn how to use instrumentation to augment your production logs.
Bottomless Ruby Hash
The other day somebody asked if there is a way to blindly assign nested values to Ruby Hash without creating each key. Turns out there is, and it has an interesting side-effect. Welcome bottomless hash. Read more
All questions answered about Cross-Site Request Forgery in Rails
Here are the answers to most Rails CSRF questions, including “what’s the difference between protect_from_forgery with: :null_session and :reset_session”.
Customizable, simple text tokenization gem.
Textoken extracts words/tokens from a given text. It can be used for Web Crawling, Natural Language Processing and in many fields. You can find github repo in this link.
How to Write Smoke Tests for an Ember Rails Stack
Learn how to run smoke tests when writing an app using the Ember Rails stack in this article.
Single Purpose Principle
Learn the basics, avoid the confusion, recognize when you are violating the Single Purpose Principle here
Setting Up Log File Rotation using only Ruby code for Rails
I made a short video on how to do log file rotation inside your Rails app.
Understanding and Extending Rails Form Helpers
Helpers in rails are meant to clean up view code by allowing you to extract data processing logic from your markup code. By moving the logic out, you get an added benefit, you can test your “view logic” easier. Read more
Fleeting Filing With Ruby Tempfile
Dealing with external file downloading and archiving can be complicated the first time around, particularly if you’ve never worked with Ruby’s File and Tempfile classes before. This blog post explores when and how to use Ruby tempfiles, including the order of operations when it comes to Tempfile method invocations.
Ruby 2.2.3 Enumerator Basics : Part 2
Ruby 2.2.3 Enumerator methods such as enum_for, to_enum and implementing Fibonacci sequence using Enumerator. Watch it here
Successful Kickstarter for Rails Composer
Reached the funding goal for the Kickstarter for Rails Composer and will add Bootstrap templates to the next version. I’m very grateful for the outpouring of support for the project. There’s still a few hours left if you want to help.
How to Build a Rails 5 API Only and Ember Application From Scratch
With Rails API making it into the Rails master branch and Ember rapidly changing, it is time for a current post on how to get started building an app on a Rails 5 API and Ember CLI
Working with APIs in Ruby
Introduction to getting started using APIs. Examples included.
Dive into Kubernetes and Docker
Baltimore has been celebrating Baltimore Innovation Week. The best part of the week was a developer conference. From my company, SmartLogic, one of our developers presented on Kubernetes and Docker. Read more
Blog with markdown support for posts and pages
Hi everyone, If anyone needs a blog/personal website that supports markdown, check out
the 10 most used git commands
Here are the 10 most used git commands you need to know to impress your friends and employers. Or if you simply want to get more work done faster when building apps.
Database Sharding with Octopus
An overview of database sharding with the octopus gem. Read it here
Static Sites with Middleman
Wrote up a tutorial introducing middleman as a tool for writing static sites. Link.
Give the middleman a start-script
I use middleman for my own website. To make it easier for me to pickup my
work over different machines , I added a small start script to the repository.
In this article I’m going to show you how it works and how you can make use of
it for your own website build on top of middleman. If you like my writing and don’t want to miss any new article, you may want to follow me on Twitter or subscribe to the news feed of my site.