Method: RecordSelectHelper#record_select_id
- Defined in:
- lib/record_select/helpers/record_select_helper.rb
#record_select_id(controller = nil) ⇒ Object
The id of the RecordSelect widget for the given controller.
155 156 157 158 |
# File 'lib/record_select/helpers/record_select_helper.rb', line 155 def record_select_id(controller = nil) #:nodoc: controller ||= params[:controller] "record-select-#{controller.gsub('/', '_')}" end |