Shavin Peiries


240 Experience
2 Lessons Completed
0 Questions Solved


It is, but DHH recommends using the template file, and personally I like this method myself because you don't have to look at two places in different instances!

So the format that Chris shows is what's encouraged by DHH, check here:

Posted in Rails for Beginners Part 33: Twitter API Discussion

If you get

Twitter::Error::Unauthorized (Read-only application cannot POST.)


Could not authorize you

Go to twitter developer setting and under App permissions enable Read, Write and Direct Messages. It was on Read Only for me before.

And then regenerate all the keys/tokens + update them again in your app.

Also helps to restart the servers/console again. Fixed the problem for me.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

© 2024 GoRails, LLC. All rights reserved.