javascript_include_tag and controller actions

Hello folks,

I'd like to include the javascript generated by an RJS file in an
RHTML file using the <script></script> tags. I was going to use
javascript_include_tag to do this, mostly in order to ensure that the
contents are not cached by the browser.

Unfortunately, javascript_include_tag appends a ".js" to the file name
if there is not a period in the file name. This means that I cannot

  <%= javascript_include_tag '/browse/read_variables' %>

when read_variables is an action in the browse controller with an RJS

There are various ways to work around this behaviour, but it seems
like a reasonable approach that should work. Is there a way to use
javascript_include_tag with an action? If not, is it something that
should be corrected in Rails, or is my usage too obscure/wrong/