You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
✗ rails s
=> Booting WEBrick
=> Rails 3.1.0 application starting in development on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
*** Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.
Exiting
defpopulate# Process:# 1. AJAX call made by jQuery to populate the student table# 2. Find students from the database# 3. Pass in the student data into the helper function (construct_table_rows defined in UsersHelper)@students_data=Student.all(:order=>'user_name',:include=>[:section,:grace_period_deductions])
should'be able to add group without groupname'doAssignment.any_instance.stubs(:add_group).returns(Grouping.make)post_as@admin,:add_group,:assignment_id=>@assignment.id[...]end
I want to call annotation_categories/add_annotation_category.js.erb with the action add_annotation_category.
It works well with an Ajax request, but it doesn't work in my tests.
I know that the problem comes from :formats => [:html] which should be :formats => [:js], but I don't understand why I have this behavior with .js.erb and not with rjs (I'm moving from Prototype to jQuery).
For a little over two weeks, I had the opportunity to learn JavaScript by working on an issue on the MarkUs's GitHub.
This issue is about updating the MarkUs application from Prototype to jQuery. Indeed, in order for MarkUs to migrate to Rails 3.1 (it is currently implemented with Rails 3.0), it has to support the new default javascript library, jQuery, hence motivating this work.
As I had never programmed in Javascript before, the first step was to document myself on javascript, but also to learn how Prototype and jQuery worked.
Fortunately, these two libraries have a fairly extensive documentation (Prototype API & jQuery API).
Merge old Pull Request and Master
A student, @m-bodmer had already tackled this issue a while back when working on MarkUs. Thankfully, he had created a pull request (link), and I co