Rails 3.1 polymorphic_select view helper
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
Gemfile
README.md
Rakefile
polymorphic_select.gemspec

README.md

polymorphic_select

Rails 3.1 polymorphic_select view helper

Usage

= f.polymorphic_select :thingable, Thing.all.map { |t| [t.name, "Thing:#{t.id}"] }

Really must write some better usage docs....