I'm trying to use Emblem.js to render Ember templates in a Rails app. Here is a part of my Gemfile
:
gem 'ember-rails'
gem 'ember-source', '~> 1.9.0'
gem 'emblem-rails'
gem 'emblem-source', github: 'machty/emblem.js'
This is according to the installation instructions of emblem-rails
gem: http://ift.tt/1IKVgY7
I have a very basic app. This is the layout written in slim:
doctype html
html
head
title My App Title
= stylesheet_link_tag 'application', media: 'all'
= javascript_include_tag 'application'
= csrf_meta_tags
body
I also have a basic Ember-Rails app where I have my application template written with emblem /app/assets/javascripts/templates/application.emblem
:
h1 Hello World
But I get the following error (even after restarting my puma server):
ArgumentError at /
wrong number of arguments (1 for 2)
(in /Users/htaidirt/Code/MyApp/app/assets/javascripts/templates/application.emblem)
with a highlight to the layout at = javascript_include_tag 'application'
line: http://ift.tt/1I2dBfS
Do you have any idea how can I fix that? Thanks.
Aucun commentaire:
Enregistrer un commentaire