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.
Full-Stack Testing with Rails System Tests
Rails 5.1 is on its way, and with it, developers will finally have access to Capybara-based system tests right out of the box. Users of Rails integration tests will receive a major upgrade in functionality, and those who already use Capybara are about to see their lives get a whole lot easier. This post looks at Rails’ approach to system tests and why this should be the thing to finally convince you to start testing your app end-to-end.
Creating a Sales Analytics App with Ruby on Rails: issue solving
This is about our - slightly - bumpy development road when creating a Sales Analytics App with Ruby on Rails. Read about some issues we encountered on our way and how we solved them:
Search by radius in Redis
How to retrieve geospatial items near a specified point using Redis:
Implement Devise + Omniauth2.0
Do you want to implement Devise + Omniauth2.0? Know about real working project implementing these.
Stop Using Case Statements in Ruby
Learn how to use polymorphism to write better Ruby code & avoid conditionals:
Rails API with Active Model Serializers
In this tutorial we show how to build an API, which helps to organize the workflow of a library, using Rails API 5 with ActiveModelSerializers.
Generate automatically unique usernames in Ruby on Rails
How to generate unique usernames in Ruby on Rails without user intervention Read more
Lonely operator?
What are your thoughts? Are you using it, have you had any problems with it? Read more
[Screencast] Cropping Images with JCrop
Extend your image upload functionality with JCrop. Learn to redirect the user to a crop page once they have uploaded their image and save versions of the cropped images. https://www.driftingruby.com/episodes/cropping-images-with-jcrop
fluxbox_apps_menu 1.4.0 is out!
fluxbox_apps_menu the CLI Ruby app which builds the application menu for the popular Fluxbox window manager, has been improved with this version. More info about this project in the wiki.
TheOpenCMS. Weekly report #7
Hello World! I still keep you informed about my initiative. Changelog vol. 7
Pronto v0.9.0 released!
Pronto keeps getting better at providing a quick automated code review of your changes. The big features of this releases are the two new formatters. One adds support Bitbucket Server. The other adds another way to comment on GitHub, using Review API. Read more
Conditionality is filtering. Don't filter control flow, filter data.
I am not that smart. I didn’t say it. Michael Feathers did. But it got me thinking and I know it inspired my colleagues as well. Read more
ACLI – Action Cable CLI written in mRuby
ACLI (github) is Action Cable command line interface written in mRuby. Read more
Advanced Decorators: meta decorating
As a small celebration for the milestone of over 1,000 downloads of my gem bottled decorators (yes I know, a pathetically small milestone, but one none the least!) I have written a new blog that builds from my first one with some more advanced decorating techniques. Hope you enjoy! Read more
You've messed up a Rails migration. Now what?
You don’t want to burn your database down and start again, you just want to tweak and rerun your latest migration in your development environment. Here’s one way to handle it:
How to use Ruby logger in Rails ?
Checkout =>How to use Ruby logger in Rails ?
Continuous Deployment with CircleCI and Capistrano for Rails applications
Step by step configuration based on Rails as example
Saving multiple models with Form Objects and Transactions
In this article we continue to investigate ways to simplify Rails views with Form Objects
A shadowing bug seen in the wild
I came across a shadowing bug; it took me a while to spot it and figure out exactly what was going on.
Object oriented enumerations in Ruby
A gem for object-oriented enumerations in Ruby. Each class has a set of predefined instances, that represent the enumerated values. Inheritance and instance methods on enumerated values are supported as well.
Easy JWT authentication gem
Welcome to EasyJwtAuth! EasyJwtAuth is a ruby gem that allows easy use of JWT tokens in any ruby project or rails application, typically for authenticating and authorizing requests.
Different User Views In Rails Applications
How to create different page views for users that are based on their user type (Admin, Beta User, etc.) Click here for the full post