Module: MuckUsers::FormBuilder
- Defined in:
- lib/muck-users/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
5 6 7 |
# File 'lib/muck-users/form_builder.rb', line 5 def roles_select(method, = {}, = {}) self.select(method, Role.by_alpha, .merge(:wrapper_id => 'roles-container'), .merge(:id => 'roles')) end |