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
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
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.
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: https://developer.epages.com/blog/2017/04/18/creating-a-sales-analytics-app-with-ruby-on-rails-2.html
How to retrieve geospatial items near a specified point using Redis: http://blog.primehammer.com/2017/04/25/search-by-radius-in-redis/
How we use FriendlyId gem at Rubycoders https://rubycoders.io/articles/how-rubycoders-use-friendlyid-gem
Do you want to implement Devise + Omniauth2.0? Know about real working project implementing these. http://mayurkumar.info/blog/how_to_use_devise_with_omniauth/
Learn how to use polymorphism to write better Ruby code & avoid conditionals: http://www.blackbytes.info/2017/04/stop-using-case-statements-in-ruby/
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. https://www.nopio.com/blog/rails-api-active-model-serializers/
How to generate unique usernames in Ruby on Rails without user intervention [more inside]
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
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]
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 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
Step by step configuration based on Rails as example https://medium.com/@kirill_shevch/continuous-deployment-with-circleci-and-capistrano-for-web-applications-d8fea0192114
In this article we continue to investigate ways to simplify Rails views with Form Objects