RailsApps / rails3-bootstrap-devise-cancan

Outdated. See the rails-devise-pundit example app for Rails 4.1.
http://railsapps.github.io
491 stars 207 forks source link

Select default role value #21

Closed jostster closed 11 years ago

jostster commented 11 years ago

Can you add to the tutorial how to have the currently assigned role for the user to be selected when you click change role?

DanielKehoe commented 11 years ago

The newest release of the application contains the code to preselect the current role when displaying the 'change role' form. I've updated the tutorial as well. See 309b5a67eec6cba2d62cc9af3fe5edcbb8116fcc