views:

25

answers:

1

Hi all,

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

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

+1  A: 

Method is the same as in create.html.erb

<% @user.name %>
Bohdan Pohorilets
ThanksI am a noob :)
akam