Module: MuckUsersCustomFormBuilder
- Defined in:
- lib/muck_users/muck_custom_form_builder.rb
Instance Method Summary collapse
-
#roles_select(method, options = {}, html_options = {}) ⇒ Object
creates a select control with roles.
Instance Method Details
#roles_select(method, options = {}, html_options = {}) ⇒ Object
creates a select control with roles
4 5 6 |
# File 'lib/muck_users/muck_custom_form_builder.rb', line 4 def roles_select(method, = {}, = {}) self.select(method, Role.by_alpha, .merge(:wrapper_id => 'roles-container'), .merge(:id => 'roles')) end |