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.
This is a tutorial on using Stimulus.js to create a breadcrumbs in your progressive web app. PWAs can be displayed without any browser chrome, including back and forward buttons, so your app is now responsible for some kind of back and forth mechanism. https://johnbeatty.co/2019/02/06/leaving-breadcrumbs-in-your-progressive-web-app-with-stimulus-js/
simple solution for content driven websites. https://medium.com/@amalrikmaia/semi-static-pages-with-google-docs-da70d4398406
When learning web development it can be fustrating to know what to focus your efforts on. Especially when you are trying to land that first job or freelance gig. This post is designed to expose those learning web development where to focus their energy.
Opal-RSpec is a port to Opal of the glorious RSpec TDD library. Runs your specs entirely in the browser or on Node.js. The new release brings compatibility with Opal v0.11 and a new CLI and folder structure.
Hello, I’m starting new series of articles explaining Ruby native extensions by complete example for everyone interested in this mysterious world of Ruby ecosystem.
Hello, I’ve published a new red paper that introduces the new sruby version / flavor. sruby - short for simple, secure & solid ruby - is a subset of mruby that is a subset of “classic” ruby and lets you run contract / transaction scripts on the blockchain / world computer. Happy transacting with sruby. Cheers. Prost.
In this episode, we look at different ways to use pattern matching with Regular Expressions in Ruby. https://www.driftingruby.com/episodes/what-the-regex
It is very easy to get started with HTTP caching in Rails, but there are a few small things you need to watch out for. Handling layout changes is one of those things, and I explain how to do that in this article.
Hello, I’ve updated Universum - a next generation ethereum-like world computer runtime - that lets you run contract scripts / transactions in ruby on the blockchain. Cheers. Prost. PS: See the Programming Crypto Contracts Step-by-Step guide / book for more contract samples in ruby (e.g. satoshi_dice.rb, ponzi_governmental.rb and many more).
In this article, we’re going to describe the
Find module and use it for counting the Lines of Code of a Rails application.. SEE MORE
Why should you be using Ruby on Rails for e-commerce? Answers inside that piece, complete with a shop tutorial on top of Refinery CMS. Code snippets, repo, and demo included! [more inside]
Hello, I’ve added a new chapter to the (free online) step-by-step guide / booklet titled “Programming Crypto Blockchain Contracts (with Ruby) Step-by-Step Book / Guide”. Let’s look at the p@nzi governmental - a real world case study - last creditor / investor (before collapse) wins the jackpot! Cheers. Prost.
I ran Jeremy Evans routing benchmark and here are the numbers.
When I started learning Rails, I was always in a state of confusion about using includes or joins, because both are used in almost same scenario. Includes uses eager loading whereas joins uses lazy loading. Both are used when certain operations are meant to be performed on associated tables. And here comes the difference. https://medium.com/@swapnilggourshete/rails-includes-vs-joins-9bf3a8ada00
One of the most common questions I see from beginners to Rails testing is what mocks and stubs are and when to use them. https://www.codewithjason.com/rspec-mocks-stubs-plain-english/ If you’re confused about mocks and stubs, you’re not alone. In my experience very few people understand them. In this post I’ll attempt to help clarify the matter, particularly in the context of Rails/RSpec. [more inside]
First preview of the 2.0 series. App simplification, new router, rewritten actions, fresh code reloading strategy. http://hanamirb.org/blog/2019/01/30/announcing-hanami-200alpha1.html
https://github.com/igorkasyanchuk/active_storage_validations new version of gem now supports min/max number of uploaded files. thanks to @ivanelrey
“Guys, are the ! and ? that we find at the end of method names a convention of Ruby, RoR, or whom else?” [more inside]