Changeset 21911 for lang/vim

Show
Ignore:
Timestamp:
10/23/08 04:18:51 (5 years ago)
Author:
ujihisa
Message:

fix bug

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/vim/ruby/lang8.vim

    r21540 r21911  
    3030  def post(title, body) 
    3131    page = @agent.get "http://lang-8.com/?a=page_h_diary_add" 
    32     form = page.forms.action('./').first 
     32    form = page.forms.find {|f| f.method == 'POST' } 
    3333    form.lang_option = '2-2' # Language: English 
    3434    form.subject = title 
     
    3636    form.radiobuttons.value('5').check # Show with all Internet Users 
    3737    page = @agent.submit form 
    38     page = @agent.submit page.forms.action('./').first 
     38    page = @agent.submit page.forms.find {|f| f.method == 'POST' } 
    3939  end 
    4040