These are chat archives for opal/vienna

8th
Dec 2014
Can Edremitoglu
@cantonic
Dec 08 2014 00:04
alright, changed the Gemfile and could install everything:
gem 'opal-rails',     github: 'opal/opal-rails'
gem 'opal-jquery',    github: 'opal/opal-jquery'
gem 'opal-vienna',    github: 'opal/vienna'
gem 'opal-haml',      github: 'opal/opal-haml'

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'
Can Edremitoglu
@cantonic
Dec 08 2014 01:21
ok, i realise this has nothing to do with opal
i guess it has to do with coffee-rails-source-maps gem
Can Edremitoglu
@cantonic
Dec 08 2014 01:47
alright. got opal-rails working. I defined my first vienna model and getting Uncaught NameError: uninitialized constant Object::Vienna
adding //= require vienna to app/assets/javascripts/application.js solved it. maybe that should be mentioned in the README.
Can Edremitoglu
@cantonic
Dec 08 2014 02:09
sorry, but I need help again :( I read that vienna is not supporting not-hash style routes. This is a bit of a problem since I need vienna to run on /calendars instead of /#/calendars because I am using rails. any ideas for a workaround?
Can Edremitoglu
@cantonic
Dec 08 2014 02:56
@adambeynon can you help on this maybe when you are online?
Can Edremitoglu
@cantonic
Dec 08 2014 03:15
i just found Vienna::HistoryRouter, but can’t get it working.
Can Edremitoglu
@cantonic
Dec 08 2014 05:30
I fear that I have to drop that and continue using backbone :(