Ruby 2.2.1
Ruby on Rails 4.2.1
Cesium 1.15 (install by bower-rails)
I want to use Cesium with Ruby on Rails.
But I couldn't run cesium.
This is my config/application.rb
config.assets.paths << config.root.join('vendor', 'assets', 'bower_components')
HTML
<!DOCTYPE html>
<html>
<head>
<title>Hello World!</title>
<style>
#cesiumContainer {
position: absolute;
top: 0;
left: 0;
height: 100%;
width: 100%;
margin: 0;
overflow: hidden;
padding: 0;
font-family: sans-serif;
}
html {
height: 100%;
}
body {
padding: 0;
margin: 0;
overflow: hidden;
height: 100%;
}
</style>
</head>
<body>
<div id="cesiumContainer"></div>
<script>
var viewer = new Cesium.Viewer('cesiumContainer');
</script>
</body>
</html>
application.js
//
//= require cesiumjs/cesium/cesium
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .
after that I ran rails server.
I saw this error logs.
Error constructing CesiumWidget.
Visit http://get.webgl.org to verify that your web browser and hardware support WebGL. Consider trying a different web browser or updating your video drivers. Detailed error information is below:
DeveloperError: Unable to determine Cesium base URL automatically, try defining a global variable called CESIUM_BASE_URL. Error at new t (http://localhost:3000/assets/Cesium/Cesium.self-e5be9662de17d5d8579c81c127c8f403d7b3943fd6f3ed5a374164899895e06e.js?body=1:418:6674) at o (http://localhost:3000/assets/Cesium/Cesium.self-e5be9662de17d5d8579c81c127c8f403d7b3943fd6f3ed5a374164899895e06e.js?body=1:419:5894) at s (http://localhost:3000/assets/Cesium/Cesium.self-e5be9662de17d5d8579c81c127c8f403d7b3943fd6f3ed5a374164899895e06e.js?body=1:419:6142) at d (http://localhost:3000/assets/Cesium/Cesium.self-e5be9662de17d5d8579c81c127c8f403d7b3943fd6f3ed5a374164899895e06e.js?body=1:419:6293) at new J (http://localhost:3000/assets/Cesium/Cesium.self-e5be9662de17d5d8579c81c127c8f403d7b3943fd6f3ed5a374164899895e06e.js?body=1:457:17887) at new P (http://localhost:3000/assets/Cesium/Cesium.self-e5be9662de17d5d8579c81c127c8f403d7b3943fd6f3ed5a374164899895e06e.js?body=1:466:26381) at new J (http://localhost:3000/assets/Cesium/Cesium.self-e5be9662de17d5d8579c81c127c8f403d7b3943fd6f3ed5a374164899895e06e.js?body=1:468:28064) at http://localhost:3000/:35:18
Please tell me how to solve...