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