Charles G

Joined

80 Experience
0 Lessons Completed
0 Questions Solved

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

Posted in Deploying our Rails Blog to Production Discussion

well just have to worry about this production crap later... thank yiou Chris for this great tutorial

Posted in Deploying our Rails Blog to Production Discussion

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.

Posted in Deploying our Rails Blog to Production Discussion

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

Posted in Pair Programming on Rails Scopes Discussion

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>'
3: from /Users/charles/.rvm/rubies/ruby-2.7.0/bin/irb:23:in
load'
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 >

Posted in Pair Programming on Rails Scopes Discussion

Ok got it, thanks for the really quick response Chris.

Posted in Pair Programming on Rails Scopes Discussion

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>'
4: from /Users/charles/.rvm/rubies/ruby-2.7.0/bin/irb:23:in
load'
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)>'
2: from (irb):1
1: from (irb):2:in
rescue in irb_binding'
NoMethodError (undefined method `zone' for Time:Class)