开发者

format.js argument

开发者 https://www.devze.com 2023-01-07 09:59 出处:网络
I\'ve a question about passing argument with format.js 开发者_JAVA技巧 There\'s my code (create method):

I've a question about passing argument with format.js

开发者_JAVA技巧

There's my code (create method):

respond_to do |format|
      format.js
  end

I would like to know how can i get a variable value in my create.js.erb

Thanks


Method is the same as in create.html.erb

<% @user.name %>
0

精彩评论

暂无评论...
验证码 换一张
取 消