Show has_one relationship in parent association related data tab

I created a new table Story in my Rails app:

Story Model:

class Story < ApplicationRecord
	belongs_to :wp_post
end

WpPost Model:

class WpPost < ApplicationRecord
	has_one :story, :dependent => :destroy
end

I would like that my Story appears in the related data tab of WpPost. So far, only has_many associations appear, I wonder why?

Thanks,
Nicolas

Hello @nico_lrx :wave:

Only has_many relationships appear in this Related Data left panel. belongs_to and has_one relationships should appear in the right panel among the other fields as you can see here in the screenshot.

1 Like

Oups, my bad, thanks for the clarification!