Module: MuckUsers::FormBuilder

Defined in:
lib/muck-users/form_builder.rb

Instance Method Summary collapse

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, options = {}, html_options = {})
  self.select(method, Role.by_alpha, options.merge(:wrapper_id => 'roles-container'), html_options.merge(:id => 'roles'))
end