ramzieus

Joined

820 Experience
0 Lessons Completed
1 Question Solved

Activity

Posted in Working with rails caching

Rails.cache.write('name','Hello this is string' , :expires_in => 1.week)
Rails.cache.read('name')

i use these syntax but always it's nil
=> nil

Posted in How do I change timezone in Ahoy analitics gem ?

I change the rails timezone config/timezone
then config.time_zone = 'West Central Africa'
the restart server
it's done.

I think that you can do it from the html_options = {}
ApiDock

Posted in How do I change timezone in Ahoy analitics gem ?

I search a lot but no result

from the documentation :
datetime_select(object_name, method, options = {}, html_options = {})
in your case try this :
= f.datetime_select :published_at,{} ,{style="width:auto;"}

logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2020 GoRails, LLC. All rights reserved.