Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
app
 
 
lib
 
 
 
 

README.markdown

Polymorphic Select

Have a polymorphic belongs to relationship? Need to show it on a form? How you going to do that?

No worries, friendo. I got you covered:

f.input :featuring,
        as: :polymorphic_select,
        grouped_options: {
          Animal  => Animal.by_name,
          Exhibit => Exhibit.by_name
        }

Code At Viget

Visit code.viget.com to see more projects from Viget.

About

Formtastic input for polymorphic belong to relationships

Resources

Releases

No releases published
You can’t perform that action at this time.