Guest User

Untitled

a guest
Aug 11th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. ## user_controller.rb
  2.  
  3. def edit
  4. user_id = params[:us_id].to_i
  5. @user = User.find(user_id)
  6. end
  7.  
  8. ## edit.html.haml
  9.  
  10. #dialog-account-edit
  11. = render :partial => "form", :locals => {:errors => {}, |
  12. :account_name => @user.us_name, |
  13. :username => @user.us_username, |
  14. :password => "", |
  15. :confirm_password => "", |
  16. :ptype => @user.us_type, |
  17. :lock => @user.us_lock |
  18. } |
  19.  
  20. :javascript
  21. $j("#dialog-account-edit").dialog();
  22. $j("#dialog-account-edit").dialog("open");
  23. $j("#dialog-account-edit").dialog({title: 'Edit account'});
  24. $j("#dialog-account-edit").dialog({width: 495});
  25.  
  26. # i don't know why my dialog-account-edit popup doesn't show up, pls help
Add Comment
Please, Sign In to add comment