```coffeescript
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

$ ->
  $("select#dashboard_filter_interval").on "change", (e) ->
    this.form.submit()
```

Use turbolinks for dom loading
user
```coffeescript
# Place all the behaviors and hooks related to the matching controller here.
# All this logic will automatically be available in application.js.
# You can use CoffeeScript in this file: http://coffeescript.org/

$(document).on 'turbolinks:load', () ->
  $("select#dashboard_filter_interval").on "change", (e) ->
    this.form.submit()
```
assistant