How to use Partials in Rails Discussion

0
General
The closing quotation mark is missing, and the backticks are misleading. (I'm guessing they were added for formatting markdown, but due to some change in the blog they are now appearing as visible...
Brandon posted

Muliple has_one's on a polymorphic association

1
General
I wish to add a billing_address and a delivery_address to my Client's. So i thought i would make my Addresses polymorphic. ```ruby class Client < ActiveRecord::Base has_many :addresses, as: ...

Caching with Etags Discussion

4
General
Can I use this with associations in views? I have post with author and use fresh_when on post. If I change author will it render on post view old author or new one?
Leon Entrup replied

Setup MacOS 11 Big Sur Discussion

4
General
Hi I get an error: /.zshrc:2: parse error near `source' any ideas why?

how to create and use different sub models of base data model

1
General
I am an iOS developer developing my first rails app. I would like to have suggestion on what i am trying to build. I want to create a web portal for different type of service providers. Any body ca...
Chris Oliver replied

ActiveRecord Default Scopes, Unscoped, and Unscope Discussion

3
General
Students are required to do their assignments in a timely manner

Engineering Books I Recommend Discussion

0
General
Thank you for sharing!

PowerApps Attachments

0
General

Setup Ubuntu 13.10 Saucy Salamander Discussion

96
General
I believe in the line "sudo apt-get install postgresql-common -t raring," raring should actually be saucy. Also in the line "rails new myapp -d postgres," postgres should be postgresql.
Someone replied

I am new to rails.

2
General
Just finished with ruby this week and I thought going for rails is the next step. I am a little confused about where to start. I will appreciate if anyone can point me to what to start with .what l...
Christopher Slade replied

Handle "delayed" response from external API

2
General
I have been following the series on building a gem using Faraday against the Vultr API and have started building my own version of it against one of the Azure dataplane API's. This works a little b...
iram replied

How to use the MQTT Protocol with Ruby Discussion

0
General
How would you compare this to Kafka?
Talha Shoaib posted

Deploying Tailwind to AWS Elastic Beanstalk

4
General
I was wondering if anyone has experience of deploying A Rails 6 app with Tailwind to AWS Elasticbeanstalk. I have tried a dozen times now however the build keeps failing. I am getting the followi...

Could we get a video on passing Devise current_user (or general user roles) into a Turbo partial?

1
General
Hi Chris, I was just wondering if there is any possibility of getting a video or some tips on including Devise current_user data or user roles inside a turbo stream - specifically to show/hide edi...

Knowing you're probably preparing some episodes on Hotwire, here are some questions

3
General
* how do you install it with Rails 6.1 and most common use case (webpack setup) * is Turbo a drop-in replacement for Turbolinks? * what would it take to replace Turbolinks with Turbo in existing (6...

Can I setup Rail app to the managed DigitalOcean Server

0
General
I am looking to setup the Go rail app to the [managed DigitalOcean server](https://www.cloudways.com/en/digital-ocean-cloud-hosting.php) which consist of: Ram: 1GB Processor: 1Core Basic Storage: 2...
EstherLewis posted

Realtime Charts with Stimulus Target Callbacks Discussion

6
General
Hi! You tend to have an episode topic when I need it :-) Great job, thank you! R.

Recurring Select with ice Cube Between Two Dates

0
General
Following along with recurring select/ice cube video, I have everything up and running with Rails 7. The only issue I have is that when someone creates an event they set a start\_date and an end\_d...
spacerobotTR posted

Custom ActionText Sanitizer & Scrubber in Rails Discussion

0
General

Madmin: How to handle slugs vs IDs

0
General
I've set up Madmin, and I'm trying to go to the (blog) Article model edit page. Problem is Article's "to_param" is the :slug. Madmin by default looks for model's IDs: How can I tell it to look for...
Jules Maregiano posted

Learning Ruby on Rails? Join our newsletter.

We won't send you spam. Unsubscribe at any time.