forked from expertiza/expertiza
-
Notifications
You must be signed in to change notification settings - Fork 1
/
rails3_upgrade_todo
308 lines (298 loc) · 13.9 KB
/
rails3_upgrade_todo
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
[31m[1mSoon-to-be-deprecated ActiveRecord calls[0m
[37mMethods such as find(:all), find(:first), finds with conditions, and the :joins option will soon be deprecated.
[1mMore information:[0m [36mhttp://m.onkey.org/2010/1/22/active-record-query-interface
[37mThe culprits:
[33m - app//controllers/admin_controller.rb
[33m - app//controllers/assignment_controller.rb
[33m - app//controllers/assignment_controller.rb~
[33m - app//controllers/assignment_signups_controller.rb
[33m - app//controllers/content_pages_controller.rb
[33m - app//controllers/controller_actions_controller.rb
[33m - app//controllers/invitation_controller.rb
[33m - app//controllers/menu_items_controller.rb
[33m - app//controllers/popup_controller.rb
[33m - app//controllers/questionnaire_controller.rb
[33m - app//controllers/questions_controller.rb
[33m - app//controllers/reports_controller.rb
[33m - app//controllers/response_controller.rb
[33m - app//controllers/review_mapping_controller.rb
[33m - app//controllers/roles_controller.rb
[33m - app//controllers/sign_up_sheet_controller.rb
[33m - app//controllers/signup_controller.rb
[33m - app//controllers/site_controllers_controller.rb
[33m - app//controllers/statistics_controller.rb
[33m - app//controllers/student_task_controller.rb
[33m - app//controllers/student_task_controller.rb~
[33m - app//controllers/student_team_controller.rb
[33m - app//controllers/survey_controller.rb
[33m - app//controllers/survey_deployment_controller.rb
[33m - app//controllers/survey_response_controller.rb
[33m - app//controllers/system_settings_controller.rb
[33m - app//controllers/users_controller.rb
[33m - app//helpers/assignment_helper.rb
[33m - app//helpers/dynamic_review_mapping.rb
[33m - app//helpers/leaderboard_helper.rb
[33m - app//helpers/participants_helper.rb
[33m - app//helpers/survey_helper.rb
[33m - app//helpers/team_helper.rb
[33m - app//models/administrator.rb
[33m - app//models/assignment.rb
[33m - app//models/assignment_node.rb
[33m - app//models/assignment_participant.rb
[33m - app//models/assignment_team.rb
[33m - app//models/automated_metareview/plagiarism_check.rb
[33m - app//models/automated_metareview/text_preprocessing.rb
[33m - app//models/content_page.rb
[33m - app//models/controller_action.rb
[33m - app//models/course_node.rb
[33m - app//models/course_participant.rb
[33m - app//models/course_team.rb
[33m - app//models/courses_users.rb
[33m - app//models/due_date.rb
[33m - app//models/folder_node.rb
[33m - app//models/instructor.rb
[33m - app//models/leaderboard.rb
[33m - app//controllers/assignment_controller.rb
[33m - app//controllers/assignment_controller.rb~
[33m - app//controllers/grades_controller.rb
[33m - app//controllers/invitation_controller.rb
[33m - app//controllers/popup_controller.rb
[33m - app//controllers/profile_controller.rb
[33m - app//controllers/review_files_controller.rb
[33m - app//controllers/review_mapping_controller.rb
[33m - app//controllers/sign_up_sheet_controller.rb
[33m - app//controllers/signup_controller.rb
[33m - app//controllers/student_team_controller.rb
[33m - app//controllers/system_settings_controller.rb
[33m - app//helpers/dynamic_review_mapping.rb
[33m - app//helpers/leaderboard_helper.rb
[33m - app//helpers/questionnaire_helper.rb
[33m - app//models/administrator.rb
[33m - app//models/assignment.rb
[33m - app//models/assignment_participant.rb
[33m - app//models/assignment_team.rb
[33m - app//models/automated_metareview/plagiarism_check.rb
[33m - app//models/automated_metareview/text_preprocessing.rb
[33m - app//models/automated_metareview.rb
[33m - app//models/course_team.rb
[33m - app//models/instructor.rb
[33m - app//models/leaderboard.rb
[33m - app//models/menu_item.rb
[33m - app//models/review_response_map.rb
[33m - app//models/score_cache.rb
[33m - app//models/sign_up_topic.rb
[33m - app//models/super_administrator.rb
[33m - app//models/ta.rb
[33m - app//views/advertise_for_partner/show.html.erb
[33m - app//views/popup/participants_popup.html.erb
[33m - app//views/popup/team_users_popup.html.erb
[33m - app//views/review_mapping/_list_review_mappings.html.erb
[33m - app//views/review_mapping/_participantscore.html.erb
[33m - app//views/review_mapping/_report.html.erb
[33m - app//views/review_mapping/_teamscore.html.erb
[33m - app//views/review_mapping/select_mapping.html.erb
[33m - app//views/student_team/view.html.erb
[33m - app//views/tree_display/actions/_assignments_actions.html.erb
[33m - app//controllers/admin_controller.rb
[33m - app//controllers/assignment_controller.rb
[33m - app//controllers/assignment_controller.rb~
[33m - app//controllers/grades_controller.rb
[33m - app//controllers/invitation_controller.rb
[33m - app//controllers/popup_controller.rb
[33m - app//controllers/profile_controller.rb
[33m - app//controllers/questionnaire_controller.rb
[33m - app//controllers/reports_controller.rb
[33m - app//controllers/response_controller.rb
[33m - app//controllers/review_mapping_controller.rb
[33m - app//controllers/sign_up_sheet_controller.rb
[33m - app//controllers/signup_controller.rb
[33m - app//controllers/student_task_controller.rb
[33m - app//controllers/student_task_controller.rb~
[33m - app//controllers/student_team_controller.rb
[33m - app//controllers/survey_controller.rb
[33m - app//controllers/survey_response_controller.rb
[33m - app//controllers/users_controller.rb
[33m - app//helpers/assignment_helper.rb
[33m - app//helpers/dynamic_review_mapping.rb
[33m - app//helpers/leaderboard_helper.rb
[33m - app//helpers/participants_helper.rb
[33m - app//helpers/survey_helper.rb
[33m - app//helpers/team_helper.rb
[33m - app//models/assignment.rb
[33m - app//models/assignment_node.rb
[33m - app//models/assignment_participant.rb
[33m - app//models/assignment_team.rb
[33m - app//models/automated_metareview/plagiarism_check.rb
[33m - app//models/automated_metareview/text_preprocessing.rb
[33m - app//models/automated_metareview.rb
[33m - app//models/course_node.rb
[33m - app//models/course_participant.rb
[33m - app//models/course_team.rb
[33m - app//models/courses_users.rb
[33m - app//models/due_date.rb
[33m - app//models/folder_node.rb
[33m - app//models/instructor.rb
[33m - app//models/leaderboard.rb
[33m - app//models/menu_item.rb
[33m - app//models/participant.rb
[33m - app//models/questionnaire_node.rb
[33m - app//models/response_map.rb
[33m - app//helpers/dynamic_review_mapping.rb
[33m - app//models/administrator.rb
[33m - app//models/assignment.rb
[33m - app//models/assignment_team.rb
[33m - app//models/super_administrator.rb
[0m
[31m[1mOld router API[0m
[37mThe router API has totally changed.
[1mMore information:[0m [36mhttp://yehudakatz.com/2009/12/26/the-rails-3-router-rack-it-up/
[37mThe culprits:
[33m - config/routes.rb
[0m
[31m[1mDeprecated test_help path[0m
[37mYou now must require 'rails/test_help' not just 'test_help'.
[1mMore information:[0m [36mhttp://weblog.rubyonrails.org/2009/9/1/gem-packaging-best-practices
[37mThe culprits:
[33m - test//test_helper.rb.rails2
[0m
[31m[1mDeprecated constant(s)[0m
[37mConstants like RAILS_ENV, RAILS_ROOT, and RAILS_DEFAULT_LOGGER are now deprecated.
[1mMore information:[0m [36mhttp://litanyagainstfear.com/blog/2010/02/03/the-rails-module/
[37mThe culprits:
[33m - app//helpers/participants_helper.rb
[33m - app//models/assignment.rb
[33m - app//models/course.rb
[33m - app//models/site_controller.rb
[33m - app//views/layouts/application.html.erb
[33m - lib//tasks/goldberg.rake
[33m - lib//tasks/hoptoad_notifier_tasks.rake
[0m
[31m[1mOld gem bundling (config.gems)[0m
[37mThe old way of bundling is gone now. You need a Gemfile for bundler.
[1mMore information:[0m [36mhttp://omgbloglol.com/post/353978923/the-path-to-rails-3-approaching-the-upgrade
[37mThe culprits:
[33m - config/environments/cucumber.rb
[0m
[31m[1mDeprecated ActionMailer API[0m
[37mYou're using the old ActionMailer API to send e-mails in a controller, model, or observer.
[1mMore information:[0m [36mhttp://lindsaar.net/2010/1/26/new-actionmailer-api-in-rails-3
[37mThe culprits:
[33m - app/models//assignment.rb
[33m - app/models//automated_metareview.rb
[33m - app/models//courses_users.rb
[33m - app/models//participant.rb
[33m - app/models//response.rb
[33m - app/controllers//assignment_controller.rb~
[33m - app/controllers//grades_controller.rb
[0m
[31m[1mOld Rails generator API[0m
[37mA plugin in the app is using the old generator API (a new one may be available at http://github.com/trydionel/rails3-generators).
[1mMore information:[0m [36mhttp://blog.plataformatec.com.br/2010/01/discovering-rails-3-generators/
[37mThe culprits:
[33m - vendor/plugins/delayed_job/generators/
[33m - vendor/plugins/delayed_job/generators/delayed_job/
[0m
[31m[1mDeprecated ERb helper calls[0m
[37mBlock helpers that use concat (e.g., form_for) should use <%= instead of <%. The current form will continue to work for now, but you will get deprecation warnings since this form will go away in the future.
[1mMore information:[0m [36mhttp://weblog.rubyonrails.org/
[37mThe culprits:
[33m - app/views/grades/conflict_notification.html.erb
[33m - app/views/join_team_requests/edit.html.erb
[33m - app/views/question_types/edit.html.erb
[33m - app/views/question_types/new.html.erb
[33m - app/views/review_mapping/_searchbox.html.erb
[33m - app/views/admin/list_administrators.html.erb
[33m - app/views/admin/list_instructors.html.erb
[33m - app/views/admin/new_administrator.html.erb
[33m - app/views/admin/new_instructor.html.erb
[33m - app/views/advertise_for_partner/edit.html.erb
[33m - app/views/advertise_for_partner/new.html.erb
[33m - app/views/advice/edit_advice.html.erb
[33m - app/views/advice/list.html.erb
[33m - app/views/assignment/associate_assignment_with_course.html.erb
[33m - app/views/assignment/edit.html.erb
[33m - app/views/assignment/list.html.erb
[33m - app/views/assignment/new.html.erb
[33m - app/views/auth/_login.html.erb
[33m - app/views/auth/login.html.erb
[33m - app/views/content_pages/edit.html.erb
[33m - app/views/content_pages/new.html.erb
[33m - app/views/controller_actions/edit.html.erb
[33m - app/views/controller_actions/new.html.erb
[33m - app/views/course/_add_individual.html.erb
[33m - app/views/course/edit.html.erb
[33m - app/views/course/new.html.erb
[33m - app/views/export_file/start.html.erb
[33m - app/views/grades/edit.html.erb
[33m - app/views/impersonate/start.html.erb
[33m - app/views/import_file/start.html.erb
[33m - app/views/institution/edit.html.erb
[33m - app/views/institution/new.html.erb
[33m - app/views/join_team_requests/_list_received.html.erb
[33m - app/views/markup_styles/edit.html.erb
[33m - app/views/markup_styles/new.html.erb
[33m - app/views/menu_items/edit.html.erb
[33m - app/views/menu_items/new.html.erb
[33m - app/views/mine_review_data/view_review_charts.html.erb
[33m - app/views/participants/change_handle.html.erb
[33m - app/views/password_retrieval/forgotten.html.erb
[33m - app/views/permissions/edit.html.erb
[33m - app/views/permissions/new.html.erb
[33m - app/views/profile/edit.html.erb
[33m - app/views/publishing/grant.html.erb
[33m - app/views/questionnaire/copy_questionnaire.html.erb
[33m - app/views/questionnaire/delete_questionnaire.html.erb
[33m - app/views/questionnaire/edit.html.erb
[33m - app/views/questionnaire/new.html.erb
[33m - app/views/questionnaire/select_questionnaire_type.html.erb
[33m - app/views/response/response.html.erb
[33m - app/views/review_mapping/select_mapping.html.erb
[33m - app/views/review_mapping/select_metareviewer.html.erb
[33m - app/views/review_mapping/select_reviewer.html.erb
[33m - app/views/roles/edit.html.erb
[33m - app/views/roles/new.html.erb
[33m - app/views/roles_permissions/edit.html.erb
[33m - app/views/roles_permissions/new.html.erb
[33m - app/views/roles_permissions/new_permission_for_role.html.erb
[33m - app/views/shared_scripts/_add_individual.html.erb
[33m - app/views/sign_up_sheet/add_signup_topics_staggered.html.erb
[33m - app/views/site_controllers/edit.html.erb
[33m - app/views/site_controllers/new.html.erb
[33m - app/views/statistics/list.html.erb
[33m - app/views/student_team/edit.html.erb
[33m - app/views/student_team/view.html.erb
[33m - app/views/submitted_content/_hyperlink.html.erb
[33m - app/views/submitted_content/_main.html.erb
[33m - app/views/submitted_content/_submitted_files.html.erb
[33m - app/views/suggestion/new.html.erb
[33m - app/views/suggestion/show.html.erb
[33m - app/views/survey/assign.html.erb
[33m - app/views/survey/list.html.erb
[33m - app/views/survey_deployment/new.html.erb
[33m - app/views/survey_response/create.html.erb
[33m - app/views/survey_response/submit.html.erb
[33m - app/views/system_settings/edit.html.erb
[33m - app/views/system_settings/new.html.erb
[33m - app/views/team/create_teams_view.html.erb
[33m - app/views/team/edit.html.erb
[33m - app/views/teams_participants/new.html.erb
[33m - app/views/teams_users/new.html.erb
[33m - app/views/tree_display/_page_header.html.erb
[33m - app/views/users/_pagination.html.erb
[33m - app/views/users/edit.html.erb
[33m - app/views/users/list.html.erb
[33m - app/views/users/new.html.erb
[0m
[31m[1mDeprecated AJAX helper calls[0m
[37mAJAX javascript helpers have been switched to be unobtrusive and use :remote => true instead of having a seperate function to handle remote requests.
[1mMore information:[0m [36mhttp://blog.jordanwest.me/modest-rubyist-archive/rails-3-ujs-and-csrf-meta-tags
[37mThe culprits:
[33m - app/views/automated_metareviews/list.html.erb
[33m - app/views/review_mapping/_report.html.erb
[0m
[31m[1mDeprecated ActionMailer attribute :sent_on[0m
[37mUsing the new mailer API, you can specify :date to the mail method.
[1mMore information:[0m [36mhttp://stackoverflow.com/questions/7367185/weird-error-when-delivering-mail-undefined-method-index-for-2011-09-09-2215
[37mThe culprits:
[33m - app/models/mailer.rb
[0m