dynamic drop down

14 views
Skip to first unread message

Sireesh Sowreddy

unread,
Nov 13, 2015, 5:11:09 AM11/13/15
to rubyonra...@googlegroups.com
Hi to all,
if i want to impliment dynamic dropdown i need to store those into
database?

--
Posted via http://www.ruby-forum.com/.

Colin Law

unread,
Nov 13, 2015, 6:54:48 AM11/13/15
to Ruby on Rails: Talk
On 13 November 2015 at 10:10, Sireesh Sowreddy <li...@ruby-forum.com> wrote:
> Hi to all,
> if i want to impliment dynamic dropdown i need to store those into
> database?

If they are constants then you can just declare them as constants. I
generally find that 'constants' of that type tend to be rather
variable with time so it may be better to seed them into the database
anyway.

Colin
Reply all
Reply to author
Forward
0 new messages