Module: MuckUsersCustomFormBuilder

Defined in:
lib/muck_users/muck_custom_form_builder.rb

Instance Method Summary collapse

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