Please read for an updated status on RailsCasts:
Learn more or hide this
GitHub User: starflyer59
Did you ever get an answer to this?
I'm trying to use the newer Mercury editor and it is not saving. If anyone can help I would appreciate it:
Actually, koriroys' answer is the better way to go.
That is where the constants are stated, but they are not defined there. I think Dominik is on the right track.
Thanks. Any idea how I would define it on Heroku?
Also, where do you define:
"TWITTER_CONSUMER_KEY" and "TWITTER_CONSUMER_SECRET"
checking on one of my apps, it seems like the authentication goes through Twitter's secure connection.
Thanks again, Ryan. You say that adding an authentications model is not always necessary to have users authenticate through multiple services. What is the alternative to an authentications model? If there is only one :provider and :uid field, how can you store provider ids and uids from multiple services in the user table?
So the image that gets retreived from Twitter is the lowest resolution one. I am calling it in the user.rb like so:
self.picture = omniauth['info']['image']
How can I get one of the better quality image from Twitter?
You can define them in the environment rb files. So, for dev, you can define them in the development.rb file. You can have a separate Twitter app, then, for production and put those keys in the production.rb file.
YES! Thank You. I also have 3.1.2 and was not working for me.