Skip to content
This repository has been archived by the owner on May 25, 2018. It is now read-only.

Problem with _action and quotes #58

Open
AntonTrapp opened this issue Apr 22, 2014 · 1 comment
Open

Problem with _action and quotes #58

AntonTrapp opened this issue Apr 22, 2014 · 1 comment

Comments

@AntonTrapp
Copy link

hb 'linkTo "map.content.plinks"', 'tagName' => 'li' do
  %a{_action: '"showAnimated" "map.content.plinks" model "content"', bind: {href: "view.href"}} Plinks

leads during test mode to a Error: Barber::PrecompilerError: Pre compilation failed error:

{{#linkTo "map.content.plinks" tagName="li"}}<a {{bind-attr href="view.href"}} {{action ""showAnimated"" "map.content.plinks" model "content"}}>Plinks</a>{{/linkTo}}

The _hb part seems to work / the _action seems to change the quotation

hamlbars (2.1.1)
ember-data-source (0.14)
ember-rails (0.14.1)
ember-source (1.2.0)
ruby-2.1.1

@AntonTrapp
Copy link
Author

Quick workaround: instead of

_action: '"name" "whatever"'

using

_action: "name 'whatever'"

is working for me. So if there is no serious reason inside the code base this can be closed...

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant