問題を見つけるのを手伝ってください
エラー: 構文エラー、認識できない式: #save_property_#{result.id} throw new Error( "構文エラー、認識できない式: " msg );
ホーム.js:
$(".save_prop").click(function(){
$('#save_property_#{result.id}').slideToggle();
return false;
});
view.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>