You can use the `javascript_include_tag` helper here and modify the HTML attributes of the script tag by passing a hash as the last argument.

```erb
<%= javascript_include_tag 'requirejs/require', data: { main: javascript_path('application') } %>
```