最近ツイートを取得するアプリを開発しています。
ログイン機能等はできたのですが、肝心のツイートを取得する部分でハマってしまいました。
Ruby
1# app/controllers/top_controller.rb/ 2 3class TopController < ApplicationController 4 def index 5 end 6 7 def about 8 client = Twitter::REST::Client.new do |config| 9 config.consumer_key = "" 10 config.consumer_secret = "" 11 config.access_token = "" 12 config.access_token_secret = "" 13 end 14 15 @tweet = client.home_timeline 16 end 17 end 18end 19
Viewsでは<%= @tweets %>としたのですが、webで表示すると
<Twitter::Tweet id=***>と表示されます。
どのようなにしたら、ツイートを表示できるのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/10/03 05:59