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.
Sockets are the endpoints of the communication channel, both clients and servers have to use sockets to communicate. Once a connection is established you can put data into your socket and it will make its way to the other end, where the receiver will read from the socket to process incoming packets. [more inside]
The newest loaf has been fundamentally changed to provide even more flexibility and separation from view concerns. You can now specify how breadcrumbs are matched using new :match option and then render them using breadcrumb_trail view helper. It supports Rails >= 3.2. Enjoy!
Get your awesome gems here => https://blog.rubyroidlabs.com/2017/10/7-gems-rails-code/
In this article I walk through a real application feature: Building a web crawler; and show how I’ve tested it using RSpec – https://pooreffort.com/blog/testing-a-web-crawler-with-rspec/
Learn what’s possible with the Array#zip method! You will also learn about the power of chaining methods in Ruby. http://www.rubyguides.com/2017/10/array-zip-method/
Most guides and blog posts around ActionCable focus around simple chat apps to show the typical websocket workflow. That is great, but how is ActionCable suppose to fit into your everyday SaaS-like Rails application?
Using RSpec, learn how to create tests for your application and view your coverage. https://www.driftingruby.com/episodes/testing-with-rspec
There are 2 ways (the easy one and the unusual) to test whether your eager-loading is actually of associations is actually working .
In this post we will take a look at a way to improve sample Rails 5.1.3 System Test using POROs, collaborators, delegation and modules. https://bpohoriletz.github.io/2017/10/16/oop-and-rails-system-tests.html