我正在尝试将我的 rails 应用程序推送到 heroku cedar-stack 上。在我的本地机器上一切正常(Ruby 版本 1.9.3 和 rails 版本 3.2.6)
当我将我的应用程序推送到 heroku 时,我的 _post_form-partial 中出现以下错误(请参见下面的代码):
/app/app/views/posts/_post_form.html.erb:9: syntax error, unexpected ',', expecting ')'
2012-07-18T11:25:36+00:00 app[web.1]: ...:id =>"textarea", :cols => "5", :rows => "8", :class => "inp...
2012-07-18T11:25:36+00:00 app[web.1]: ... ^
2012-07-18T11:25:36+00:00 app[web.1]: /app/app/views/posts/_post_form.html.erb:9: syntax error, unexpected ',', expecting ')'
2012-07-18T11:25:36+00:00 app[web.1]: ...a", :cols => "5", :rows => "8", :class => "inputx-large boxs...
2012-07-18T11:25:36+00:00 app[web.1]: ... ^
2012-07-18T11:25:36+00:00 app[web.1]: /app/app/views/posts/_post_form.html.erb:9: syntax error, unexpected ')', expecting keyword_end
2012-07-18T11:25:36+00:00 app[web.1]: ... => "inputx-large boxsizing") );@output_buffer.safe_concat('
2012-07-18T11:25:36+00:00 app[web.1]: ... ^):
我真的不明白这里的问题。我究竟做错了什么?
<div id="inputfield_visible_wrapper">
<div class="well">
<input type="text" id="inputfield_visible" class="input-xlarge boxsizing" value="Create Posting here">
</div>
</div>
<div id="form_hidden_wrapper">
<%= form_for Post.new, :html => { :class => "well" } do |f| %>
<%= render "shared/posting_information" %>
<%= f.text_area (:content, :id =>"textarea", :cols => "5", :rows => "8", :class => "inputx-large boxsizing") %>
<%= f.submit "Post", :disabled => true, :id => "submit_button", :class => "btn btn-primary" %>
<%= submit_tag "Cancel", :class => "btn", :id => "cancel_button", :type => "button" %>
<div class="characters_left_wrapper">
<span id="characters_left">100</span> <span class="hidden-phone">Characters left</span>
</div>
<div class="clear"></div>
<% end %>
</div>