Method: Stellar::Gradebook::Student#update_comment
- Defined in:
- lib/stellar/gradebook.rb
#update_comment(text) ⇒ Stellar::Gradebook::Student
Changes the comment on the student’s grades page.
342 343 344 345 346 347 348 349 |
# File 'lib/stellar/gradebook.rb', line 342 def update_comment(text) page = @client.get @url grade_form = page.form_with :action => /detail/i grade_form.field_with(:name => /comment/i).value = text grade_form.submit grade_form.(:class => /save/) reload! end |