混合车把与erb

时间:2013-10-03 12:45:09

标签: ember.js handlebars.js erb sprockets

在Rails 3.2中,我能够将扩展名重命名为.handlebars.erb,以便能够在我的手柄模板中使用erb标记(主要是<%= image_tag 'image.jpg' %>)。

我无法在Rails 4中使用

gem 'ember-rails'
gem 'handlebars-source'

我得到的错误:

undefined method `image_tag'

有问题的视图如下所示,其他视图相同:

<div class="row-fluid">
  <div class="span12">
    <div class="row-fluid distance_0">
      <div class="row-fluid divider slide_divider base_color_background">
        <div class="container">
          <span class="bottom_arrow"></span>
        </div>
      </div>

      <!-- Title and Description -->
      <div class="row-fluid slide_content fullwidth">
        <div class="container">
          <div class="row-fluid text_bar_pattern themeple_sc">
            <div class="content_bar">
              <h3>
              </h3>
              <p>
              </p>
            </div>
            {{#linkTo "user.new" class="button_bar"}}{{/linkTo}}
          </div>
        </div>
      </div>
      <div class="row-fluid">
        <div class="container">
          <div class="bottom_shadow_full"></div>
        </div>
      </div>

      <div class="row-fluid distance_2"></div>
      <div class="row-fluid distance_2"></div>
      <div class="row-fluid">
        <div class="container">
          <img src="images/old_letters_blur.jpg" alt="">
        </div>
      </div>

      <%= image_tag 'old_letters_blur.jog' %>

      <!-- TextBar -->
      <!-- TextBar End -->

    </div>
  </div>
</div>

有什么建议吗?

0 个答案:

没有答案