dynamic options field in rails code can now be generated