30 Jul '16, 7am

Rails: Automatically Set User Timezone During Signup

One way to do this is to use Rails’ time_zone_select tag and ask the user to save their time zone during sign up. However, we can skip this step by automatically reading the timezone information from the browser, and set it in a cookie. This cookie can then be accessed in our Rails controller and we can save the timezone in the User model.

Full article: http://nithinbekal.com/posts/rails-user-timezones/

Tweets

Automatically Set User Timezone During Signup i...

rubyflow.com 30 Jul '16, 7am

× The Ruby and Rails community linklog Made a library? Written a blog post? Found a useful tutorial? Share it with the Rub...

Setup Google Calendar API on Ruby on Rails by m...

freelancer.com 31 Jul '16, 6pm

I want a Rails 5 app setup that accesses the Google Calendar API. The app has registered users, and the app should be able...