Save 36% for Black Friday! Save 36% on GoRails for Black Friday! Learn more
Charles G
Joined
Activity
Posted in Adding Scheduled Blog Posts Discussion
You probably increase your subscibers if you have a team that is soley dedicated to problems that arise out of your lessons.. I came here in 2021 and soon realised that errors arise but the time you get back to the problems are years.. and here i am again in 2024 trying again with the same amount of problems.. so why pay? youtube and chat gpt are better options I guess
well just have to worry about this production crap later... thank yiou Chris for this great tutorial
The build command is different now, doesnt show that... and this is the only error I now get: E, [2024-05-25T23:53:59.255503 #36] ERROR -- : [fa66de2c-bd25-4aa4-bf3e-55b6e41d73b2]
[fa66de2c-bd25-4aa4-bf3e-55b6e41d73b2] ActionView::Template::Error (The asset "tailwind.css" is not present in the asset pipeline.
Ok so I found the fix.. I just had to comment that line out in the docker file (# RUN SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile)
and then I had to make the following changes in the gemfile to debug and tzinfo-data:
gem "debug", platforms: %i[mri mingw x64_mingw]
gem "tzinfo-data", platforms: [:mingw, :x64_mingw]
this is my error:
error: failed to solve: process "/bin/sh -c SECRET_KEY_BASE_DUMMY=1 ./bin/rails assets:precompile" did not complete successfully: exit code: 1
error: exit status 1
Maybe I'm doing something else wrong?
2.7.0 :001 > require "active_support/all"
=> true
2.7.0 :002 > Event.current_month
Traceback (most recent call last):
4: from /Users/charles/.rvm/rubies/ruby-2.7.0/bin/irb:23:in <main>'
load'
3: from /Users/charles/.rvm/rubies/ruby-2.7.0/bin/irb:23:in
2: from /Users/charles/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/irb-1.2.1/exe/irb:11:in `'
1: from (irb):2
NameError (uninitialized constant Event)
2.7.0 :003 >
Ok got it, thanks for the really quick response Chris.
When I try to follow and enter these commands into irb, I keep getting the following errors. Any idea what I am doing wrong?
2.7.0 :002 > Time.zone.now
Traceback (most recent call last):
5: from /Users/charles/.rvm/rubies/ruby-2.7.0/bin/irb:23:in <main>'
load'
4: from /Users/charles/.rvm/rubies/ruby-2.7.0/bin/irb:23:in
3: from /Users/charles/.rvm/rubies/ruby-2.7.0/lib/ruby/gems/2.7.0/gems/irb-1.2.1/exe/irb:11:in <top (required)>'
rescue in irb_binding'
2: from (irb):1
1: from (irb):2:in
NoMethodError (undefined method `zone' for Time:Class)