Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我怎么能做这样简单的事情:
$('#show_history').click(function(){ var c_user = "#{current_user.id}"; alert(c_user); });
查看此截屏视频
http://railscasts.com/episodes/324-passing-data-to-javascript
为我<%=j some_ruby_expression %>工作
<%=j some_ruby_expression %>