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.
Lonely operator?
What are your thoughts? Are you using it, have you had any problems with it? [more inside]
[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. [more inside]
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. [more inside]
ACLI – Action Cable CLI written in mRuby
ACLI (github) is Action Cable command line interface written in mRuby. [more inside]
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! [more inside]
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: https://schwad.github.io/ruby/rails/migrations/2017/04/13/youve-messed-up-a-migration-now-what.html
Continuous Deployment with CircleCI and Capistrano for Rails applications
Step by step configuration based on Rails as example https://medium.com/@kirill_shevch/continuous-deployment-with-circleci-and-capistrano-for-web-applications-d8fea0192114
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. https://github.com/LIQIDTechnology/enum_class
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. https://github.com/m1lt0n/easy_jwt_auth
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
Reusable Validations In Rails Form Objects
Read how to compose form object validations from small pieces http://freeletics.engineering/2017/04/19/reusable-validations-in-rails-form-objects.html
Where to start when fixing tests
A blog post on how Avvo is working to stabilize and speed up our continuous integration test suite. We created JUnit Visualizer to help us pinpoint where we should focus. https://engineering.avvo.com/articles/where-to-start-when-fixing-tests.html
Developing Rails API Applications
I just released a new course for those interested in using Rails 5 to build API applications. It covers everything you need to get up and running: developing RESTful endpoints, working with ActiveModel::Serializers, authentication, and much more, and it’s available either as a free email course or for immediate download as a PDF (paid).
Striving Towards Maintainable Controllers
An article that journeys through various ways of making controllers better before finally settling on my own path.
For people that are fed up working on bad, awful and horrible code
…I’ve made a FREE course called How to be Happy Working on Bad Ruby Code
SporTV Play front-end architecture for the Olympic Games
How we evolved our front-end architecture using Back-end for Front-end pattern to create a new experience in SporTV Play for the Olympic Games. https://blog.guilhermegarnier.com/2017/04/sportv_play_front_end_architecture_for_the_olympic_games/
How Rubycoders use Contentful cms to publish posts
At Rubycoders we have introduced contentful cms to manage blog articles https://rubycoders.io/articles/how-rubycoders-interract-with-contentfull-cms