2

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

我无法在 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>

有什么建议么?

4

0 回答 0