elia on master
Add a notice about suspended ma… (compare)
models
, views
and controllers
in app/assets/javascripts/vienna/…
and then stumbled over opal/opal-rails#16 which says that you can use the views directory of rails for your templates. which dir structure do you prefer when using vienna with rails?
bundle install
: Could not find gem 'vienna (>= 0) ruby' in git://github.com/opal/vienna.git (at master). Source does not contain any versions of 'vienna (>= 0) ruby’
. Then I noticed, that the gem’s name has changed from vienna
to opal-vienna
. now I am getting Could not find gem 'opal (~> 0.5.0) ruby', which is required by gem 'opal-sprockets (>= 0) ruby', in any of the sources.
. this is what I put into my Gemfile following #16 : gem 'opal-rails', github: 'opal/opal-rails'
gem 'opal', github: 'opal/opal'
gem 'opal-sprockets', github: 'opal/opal-sprockets'
gem 'opal-jquery', github: 'opal/opal-jquery'
gem 'opal-vienna', github: 'opal/vienna'
now I am receiving this error in the js console:
GET http://localhost:3000/assets/opal.map 500 (Internal Server Error)
GET http://localhost:3000/assets/opal-jquery.map 500 (Internal Server Error)
excerpt from development.log:
TypeError (no implicit conversion of nil into String):
/Users/cantonic/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/json/common.rb:155:in `initialize'
/Users/cantonic/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/json/common.rb:155:in `new'
/Users/cantonic/.rvm/rubies/ruby-2.1.5/lib/ruby/2.1.0/json/common.rb:155:in `parse'
opal (0.7.0.beta3) lib/opal/sprockets/server.rb:39:in `call'
coffee-rails-source-maps
gem
//= require vienna
to app/assets/javascripts/application.js
solved it. maybe that should be mentioned in the README.