Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Belongs_to field with shared foreign key not showing in form #2477

Open
Jamevidi opened this issue Nov 18, 2015 · 0 comments
Open

Belongs_to field with shared foreign key not showing in form #2477

Jamevidi opened this issue Nov 18, 2015 · 0 comments

Comments

@Jamevidi
Copy link

I have two belongs_to associations sharing the same foreign key (page_id).

 belongs_to :page
 belongs_to :special_page, :class_name => "SpecialPage", :foreign_key => "page_id"

this is the example form:

edit do 
  field :special_page
end

....the special_page field is not showing up in the form.

Is it a bug or made so by design? or something I missed? Its version 0.6.6.

Many thanks for any input! :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant