Skip to content

Is it possible to set default value for belongs_to field? #2640

Closed Answered by adrianthedev
xeron asked this question in Help
Discussion options

You must be logged in to vote

Try Season.first.id.to_s That should do it.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by xeron
Comment options

You must be logged in to vote
1 reply
@adrianthedev
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants