Skip to content

Commit b3e549d

Browse files
committed
Fix links to lesson in mod 2 intro
1 parent 11c9d80 commit b3e549d

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

twitter-client-tutorial/_lesson_group_shared_preference.html.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,14 @@ In the real Twitter client, once you log in successfully, you will not see the l
55
We are introducing data handling in this module. The network calls will be introduced in the subsequent module. We make things a little sub-optmial. Instead of sending data to the server & getting an authentication token, we will simply store the username password from the login screen.
66

77
<div class="alert alert-warning"><b>Warning</b>: It is never a good idea to store passwords locally, plaintext or otherwise. But for the sake of this module, we overlook best practices to get a better understanding of SharedPreferences</div>
8+
<div>
9+
<% count = 1 %>
10+
<% lessons_of_mod_2 = AppLesson.find_all_by_module_number(2) %>
811

9-
1. <%= link_to "Reading login data", app_tutorial_lesson_with_token_path("twitter", AppLesson.find_by_number(@current_lesson.number + 1).lesson.token ) %>
10-
2. <%= link_to "Writing login data to Shared Preference", app_tutorial_lesson_with_token_path("twitter", AppLesson.find_by_number(@current_lesson.number + 2).lesson.token ) %>
11-
3. <%= link_to "Modify flow to not show login screen if login data exists", app_tutorial_lesson_with_token_path("twitter", AppLesson.find_by_number(@current_lesson.number + 1).lesson.token ) %>
12+
<% lessons_of_mod_2.each do |l| %>
13+
<%= count %> .
14+
<% count = count + 1 %>
15+
<%= link_to l.lesson.title, app_tutorial_lesson_with_token_path(@app_name, l.lesson_module.lesson.token, l.lesson.token) %>
16+
<br/>
17+
<% end %>
18+
</div>

0 commit comments

Comments
 (0)