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.
Released version 0.1.0 of timeliness-i18n gem!
Hey guys! I created recently a gem called “timeliness-i18n”, that contains all translations used by gem timeliness (https://github.com/adzap/timeliness). The URL for gem is: https://github.com/pedrofurtado/timeliness-i18n [more inside]
Advanced Text Layout is Coming to HexaPDF
HexaPDF will gain first traces of advanced text layout in the coming months and background information on why this is hard in PDF - https://hexapdf.gettalong.org/news/2017/advanced-text-layout-is-coming.html
Following Rails redirects with Capybara
This a very short note on setting up Capybara to correctly follow redirects with Rails classic redirect_to @object pattern.
Enter (amper)Sandman
A small overview of using the ampersand syntax for enumerable collections. We know that we can send methods to the object, and use local procs or lambda’s, but did you know you can use normal local methods too?
Protect the Data!
If you were to ask yourself - what is the essence of any software system - what would you say? There are several things I can think of, such as clean code, DRY methods, integration testing, the technology being used, great design… Still if I had to pick between losing all of those, or just the data and almost my answer would be: “Protect the data”. https://blog.kodius.io/2017/04/14/protect-the-data/
Machine Learning with Ruby
We’ve started a new awesome list for Machine Learning in Ruby. [more inside]
Service objects in Ruby with MethodObject
Lightweight and dependency-free solution for the creation of method objects: extract your complex methods from your models and move them into service objects. https://github.com/LIQIDTechnology/methodobject
3 Ways to Keep Your Ruby on Rails Apps Healthy
Introducing a few quick and simple ways you can help ensure your app’s code is secure, good quality code, and monitored in production.
Ruby on Rails Patterns – Decorator Vs. Presenter
http://www.bacancytechnology.com/blog/ruby-on-rails-patterns-decorator-vs-presenter
Bundler’s new update options
Let’s see how Bundler’s new command line flags allow you to be more conservative when updating gems.
Expressive tests with RSpec - part 1: Describe your tests properly
In this article we will have a look how to use describe, context and other RSpec features to write more descriptive tests [more inside]
How to make sure you deliver the product
My view on working on MVPs or tight deadlines. We don’t need to aim for a perfect solution from the beginning [more inside]
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: https://developer.epages.com/blog/2017/04/18/creating-a-sales-analytics-app-with-ruby-on-rails-2.html
Search by radius in Redis
How to retrieve geospatial items near a specified point using Redis: http://blog.primehammer.com/2017/04/25/search-by-radius-in-redis/
Implement Devise + Omniauth2.0
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/
Stop Using Case Statements in Ruby
Learn how to use polymorphism to write better Ruby code & avoid conditionals: http://www.blackbytes.info/2017/04/stop-using-case-statements-in-ruby/
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. https://www.nopio.com/blog/rails-api-active-model-serializers/
Generate automatically unique usernames in Ruby on Rails
How to generate unique usernames in Ruby on Rails without user intervention [more inside]
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]