基本上,我只有一个页面TODOAPP,它显示在Index.html.erb上的Rails中,我试图通过index.js.erb呈现实例化的TODO对象,因为它们都附加了一个表单,需要来自rails助手的真实性令牌通过Javascript /在Javascript中呈现待办事项是必要的。我的解决方案是尝试通过在索引中设置render "i
我已经将Rails应用程序集成到Rails应用程序中,我通过ajax post使用它,在index.html.erb中使用_partner.html.erb,但是当我返回空搜索结果时,我想要实现显示一个我尝试过这样做(在index.js.erb中):
$('#partners_list').html('<% if @partne
我的index.html.erb上有一个表单: <title>Ajax List Demo</title> <h1>Listing posts</h1><%= javascript_include_tag "prototype" %> </head> <body>
<h3>Add to list using Ajax</em