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.
を試し <%= render :template =>'resources/new', :format => "js" %>ましたが、何も起こりません。
<%= render :template =>'resources/new', :format => "js" %>
編集:また、パラメーターを .js テンプレートに送信する方法もわかりません。
これを行うことで解決しました:
render :template => 'resources/new.js', :locals => {:link_id => "register_similar"}
受信中の js.erb ファイル:
var link_id = '<%= link_id %>'