Kouhei Sutou
null+****@clear*****
Tue May 27 10:58:43 JST 2014
Kouhei Sutou 2014-05-27 10:58:43 +0900 (Tue, 27 May 2014) New Revision: 3a259566aed257dcb37448ae55537164c64bca61 https://github.com/groonga/heroku-sample-rroonga-blog/commit/3a259566aed257dcb37448ae55537164c64bca61 Message: Follow the form index change Modified files: lib/tasks/import.rake Modified: lib/tasks/import.rake (+1 -1) =================================================================== --- lib/tasks/import.rake 2014-05-27 10:00:33 +0900 (5a46dc5) +++ lib/tasks/import.rake 2014-05-27 10:58:43 +0900 (028fdc5) @@ -6,7 +6,7 @@ def import_rss(url) rss = RSS::Parser.parse(url) rss.items.each do |item| new_post_page = agent.get(uri.to_s) - form = new_post_page.forms.first + form = new_post_page.forms.last form['post[title]'] = item.title form['post[content]'] = item.description form.submit -------------- next part -------------- HTML����������������������������... ダウンロード