Forum: Ruby on Rails capture in rails to get javascript variable value

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
2dc03fec0d7d83cd133c3fa5a2a43f88?d=identicon&s=25 Angelo Mcdermott (avenasatira)
on 2007-07-23 19:15
<script language="javascript">
JSvar = "cumberbun";
</script>

<% @JSvar = capture do %>JSvar<% end %>
<%= @JSvar %>

how do i get capture to capture the actual variable value?
This topic is locked and can not be replied to.