In my domain class, i have one enum:-
class Product{
Type type
enum Type{
MEDICINE, NON_MEDICINE
}
}
By generating default view, this shows as a dropdown in create.gsp page. My requirement is to show it as a radio group in create page from where i can select any one of the two values by clicking on radio button. can anyone provide some help. thnks
This should work:
That should replace the current
g:selectingrails-app/views/product/_form.gsp