サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
画力アップ
amitrmohanty.wordpress.com
If you want to log the user who created, updates and delete a object in specific model.There is no default way to fetch the current user in models, current_user is always assigned in controllers (as per authentication plugins, restful_authentication, authlogic and devise). Found one way, by adding some steps in model/user.rb, we can get the object anywhere(also it’s threadsafe) Step 1 In your user
このページを最初にブックマークしてみませんか?
『amitrmohanty.wordpress.com』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く