#webcoderph
Explore tagged Tumblr posts
webcoderph 8 years ago
Photo
Tumblr media
I will start my day watching conf of ruby #softwareengineer #programmerslife #buildtheweb #coderslife #webcoderph #rubyist
1 note View note
webcoderph 7 years ago
Text
Ruby Thread Safe
I鈥檓 currently studying threading on ruby on rails. My senior colleague advice me that before using thread to your code, you have to know..... really know how thread works. Because if not it can get messy. Threads are hard to debug.
And so i tried it so i can understand why. Here鈥檚 my example of not thread safe and you can test it your self so you will understand that thread safe is important on concurrency.
https://gist.github.com/webcoderph/b906238d1a2cd687c52b548410ed8a2a
聽 If you want to add something. Please comment!.Thanks :D
1 note View note
webcoderph 8 years ago
Text
Sign In Support Macro With Devise
https://gist.github.com/webcoderph/02d13048af752feebedc237b71c13d8b
new_user_session_path could be different if your devise model is not User.
If you are using a different gem or your own authentication library, you need to change new_user_session_path to your login path.
0 notes