请帮我找出问题
错误:语法错误,无法识别的表达式:#save_property_#{result.id} throw new Error("语法错误,无法识别的表达式:" msg );
主页.js:
$(".save_prop").click(function(){
$('#save_property_#{result.id}').slideToggle();
return false;
});
视图.html.erb
<div id="save_property_<%= result.id %>" style="background : #ececef; width :500px; height:100px; display:none;">
<% if (user_signed_in? || current_twitter_user || current_fb_user) %>
property saved
<% else %>
<%= link_to "Sign in /", user_session_path %>
<%= link_to "Sign Up", new_user_registration_path %>
to save the property
<% end %>
</div>