Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## user_controller.rb
- def edit
- user_id = params[:us_id].to_i
- @user = User.find(user_id)
- end
- ## edit.html.haml
- #dialog-account-edit
- = render :partial => "form", :locals => {:errors => {}, |
- :account_name => @user.us_name, |
- :username => @user.us_username, |
- :password => "", |
- :confirm_password => "", |
- :ptype => @user.us_type, |
- :lock => @user.us_lock |
- } |
- :javascript
- $j("#dialog-account-edit").dialog();
- $j("#dialog-account-edit").dialog("open");
- $j("#dialog-account-edit").dialog({title: 'Edit account'});
- $j("#dialog-account-edit").dialog({width: 495});
- # i don't know why my dialog-account-edit popup doesn't show up, pls help
Add Comment
Please, Sign In to add comment