Can I have conditional javascript in my show.erb.html files?
Something like this:
<%- if File.exists?("/leggle/data/tree_xml.xml") %>
<script type="text/javascript">
...code...
</script>
<%- end %>
and have the javascript code appear only if that file exists??