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.
Time range operations with Rails
Returning basic time ranges using ActiveSupport methods. Read more at Little Programming Joys.
Introducing Screamshot
Did you know you can use Capybara as the basis for a screenshot service? Find out more in Introducing Screamshot.
Active Params
Stop manually defining strong_parameters in each and every controller. [more inside]
Ruby Decorators
A quick overview on how ruby decorators work Read more: https://codebrahma.com/ruby-decorators/
Building Your Own Linux Tools with Ruby: A Practical Guide
What is the secret behind everyday Linux tools like netstat or top? Discover it here: http://www.blackbytes.info/2016/06/linux-tools-with-ruby/
The best of Rails in Phoenix (part 1)
There are many parts of Phoenix that will make you, the long-time Rails developer, smile and feel right at home. Read more at Phoenix on Rails blog.
How to refactor ActionView view using Cells
A guide from Cells author Nick Sutterer: http://trailblazer.to/gems/cells/getting-started.html
Working with Logstash
The post describe how to start working with Logstash and how does it configuration work. [more inside]
Ruby Rescue vs. Try vs. Ternary
All of us have faced this situation when, the current_resource object provided by devise turns out to be nil. All method invocations on current_resource on current_resource will throw an undefined method for nil:NilClass exception. [more inside]
Rails 5 makes sql statements even more colorful
Sql statements are more colorful in Rails 5. [more inside]
Lesbians Who Tech sponsors $100k coding bootcamp scholarship
http://lesbianswhotech.org/codingscholarship/ LGBT women can apply to attend Thinkful, Mother Coders, or Dev Bootcamp. The scholarship will defray the cost of tuition by at least 50%.
Effectively Scaling Sidekiq Workers
A case study on organizing Sidekiq queues, workers, and throttles for stability and higher concurrent throughput. Going from constant errors and downtime to 300k jobs a day http://sorentwo.com/2016/06/28/effectively-scaling-sidekiq-workers.html
Logidze: a fast versioning and diffing library for ActiveRecord and latest PostgreSQL
Logidze is a faster tool by and large and second to none when it comes to calculating diffs for ActiveRecord models. [more inside]
If dynamic types are no good (and they are not), why are they so popular?
http://blog.debugme.eu/dynamic-typing/ An argument for dynamic typing is that by not enforcing the types of a functionās parameters, the function becomes more generalized, and thus more flexible and reusable. I argue that this flexibility versus automatically-verifiable correctness of the system is not a trade-off we need to make.
JSONB + Rails to store glorified strings in your DB
Everyone likes a good hack sometimes, like storing a list of values as one comma-separated string in DB. Letās see how to use Postgres JSONB for a nicer implementation.
[Guide] Hybrid-native Tab Bar app with Turbolinks 5
Getting into hybrid-native apps? As excited about Turbolinks Android and Turbolinks iOS as we are? Want to go beyond āthe READMEā? The guide to create a tab bar app with turbolinks-ios and Rails 5.
How to cook Rails Controllers
Please, stop access directly instance variables. Stop using a lot of callbacks and creating fat Rails controllers. How to make your controllers better.
[Screencast] Importing and Exporting CSV Data
Basics on importing and exporting CSV Data using Ruby and without gems. https://www.driftingruby.com/episodes/importing-and-exporting-csv-data
How does multiparameter attributes work in Rails
An overview of how multiparameter attributes work in Rails and how you can use them to your advantage. Read more here
Sprinkle some HATEOAS on your Rails APIs
What are the four levels of REST? What is content negotiation and hypermedia controls? And how can we implement or use all these in Rails? Read more here.