top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

If I want to implement dynamic dropdown in Ruby then do I need to store those into database?

0 votes
340 views
If I want to implement dynamic dropdown in Ruby then do I need to store those into database?
posted Nov 13, 2015 by anonymous

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

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.

answer Nov 13, 2015 by Kumar Mitrasen
Similar Questions
+1 vote

I want learn mongodb java and I want to do project in this area, I want to store encrypted data in the database.
Also I want to know what is mongoid gem. Please suggest some pointers?

+1 vote

I'm looking for a function, gem, etc. that will help to unify dates as they come in different formats. If the date comes in (1/2/2012,2012-01-02,01-02-2012,20120102,01022012, etc.)

it would be nice to have it come out 2012-01-02. I've searched for a few days and only find ways to convert this format to that format. I might be using the wrong search terms and this may have already been addressed, if so, I apologize. In my previous PERL app I wrote a long If Else type converter that would test the date and then convert it in a specific order but I'm sure someone has solved it better then I could.

0 votes

I have a CentOS server which is part of an offline/private network. I need to install Ruby on Rails,
MySQL, Apache, and PHPmyAdmin on the server. Please help?

...