0
有人可以告訴我我在做什麼錯嗎?我收到以下錯誤,當我嘗試加載我的形式(/職位/顯示):
SyntaxError in Posts#show
Showing /Users/fkhalid2008/loand/app/views/posts/show.html.erb where line #10 raised:
compile error
/Users/fkhalid2008/loand/app/views/posts/show.html.erb:10: syntax error, unexpected kENSURE, expecting $end
Extracted source (around line #10):
7: </div>
8: <button type="submit" class="btn span6 large">Submit</button>
9: <% end %>
下面是相關代碼:
帖子/ SHOW
<%= form_remote_tag(:update => 'message', :url => {:controller => 'main', :action => 'send_message', :user_id => @post.user.id }) %>
<br>
<br />
<br />
<div class="field">
Hello! My name is <%= f.text_field :subject %> and I'm contacting you in response to your ad. I'm interested in learning more so get in touch! Here's my contact details: <%= f.text_field :body %>.
</div>
<button type="submit" class="btn span6 large">Submit</button>
<% end %>
是的,修正了它。請把它標記爲答案,我可以給你信用:) – hikmatyar 2012-04-22 20:39:15