Im trying to grab the ids of the images using rails, pass those ids to javascript and then flip through them using a javascript Image Viewer.
This is what I have in my rails controller
@rails_array = Images.all
this is in my view file
<script type="text/javascript" >
var myIds=new Array(<% @rails_array %>);
</script>