Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def update
- if user_is_logged_in?
- @data_uang_masuk = UangMasuk.find(params[:id])
- if @data_uang_masuk.update(add_params)
- flash[:success] = 'Data Berhasil Diupdate'
- redirect_to '/apps/uang/masuk/'
- else
- flash[:danger] = 'Data Gagal Diupdate'
- redirect_to '/apps/uang/masuk/'
- end
- else
- redirect_to '/'
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement