V
V
vadimstroganov2015-07-04 11:23:31
Ruby on Rails
vadimstroganov, 2015-07-04 11:23:31

How to make a drop down list in activeadmin?

Hello!
I have a Posts and Languages ​​table (it's just a list of languages). The language_name field (from Posts) is associated with a foreign key to the name field (from the Language table).
How can I make it so that when adding a new post, the language_name field looks like a select from those languages ​​that are available? For now, I just have it as an input field.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
M1Anderson, 2015-07-05
@vadimstroganov

Perhaps this will help
And it is better to use Rails Admin. Everything works there by default and looks more modern.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question