All threads / Rails for Beginners Part 30: Tweet Validations Discussion

Ask A Question


You’re not receiving notifications from this thread.

Rails for Beginners Part 30: Tweet Validations Discussion

Working these videos late, I failed to realize my timezone is different from the rails default. You can set your time zone in config/application.rb.

For example:
config.time_zone = "Eastern Time (US & Canada)"

There is a lot written about automatic detection of time zones: search

Other search results


When trying to render the partial on /tweets/new, I'm getting the error:

```NoMethodError in Tweets#new

Showing /Users/ianmcmullen/scheduled_tweets/app/views/shared/_form_errors.html.erb where line #1 raised:

undefined method errors' for nil:NilClass``

However, the same line — <%= render "shared/form_errors", form: form %> — is working fine in registrations/new and giving the errors as expected. Is there anything I may be missing?

I was using the variable "Tweets" instead of "tweets", got that part sorted!

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 53,130+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    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

    © 2021 GoRails, LLC. All rights reserved.