Tutorials


Building a Sinatra API backend with Active Record Associations
In this blogpost let's go step by step and build your own Sinatra API backend that uses Active Record to access and persist data in a databaseActiveRecord and SinatraActiveRecord can be used in conjunction with Sinatra to handle creating the data ...

Episode 6: How Do You Manage Ruby Application Dependencies? | Fullstack Ruby
Every Ruby web framework has its own way of configuring itself as well as third-party dependencies. In some cases it’s largely up to you, in other cases it’s clearly spelled out. There may or may not also be some “magic” involved in requiring gems...




The mysterious life of public, private, and protected in Ruby
It seems that there is nothing more that you can learn about access modifiers in Ruby. Public, private, and protected are well known among Ruby developers. I thought so too. However, I found a few things that are still valuable to learn and may be...

Manage Rails app business logic using ActiveInteraction gem | Shakacode
While working with Rails applications, developers are concerned about adding business logic in the right place. Developers have to ensure that the business logic is well understood, maintainable and readable as the application grows.To abstract an...

Integrate Sidekiq with Hanami Applications | Hanami Mastery
In the previous episode, I showcased the possible implementation of the Sitemap generation for your Hanami applications. If you're new to the channel, make sure you check that out as today I'll make a direct improvement on that topic.My sitemap ge...

Stateless Forms with the Rails Attributes API: No Active Record? No Problem!
One of the ironies of working with Ruby on Rails is that making a feature do less often results in more work. For a great example of this, consider the ingredients that go into a standard Rails form: route, controller, ERB template, Active Record ...