Skip to content

Commit 4638f52

Browse files
committed
Fix links to lesson in mod 4 intro
1 parent 88ec63e commit 4638f52

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

twitter-client-tutorial/_lesson_group_tweets_from_file.html.md

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,13 @@ In a mobile app, use of local storage is important for a better user experience.
88

99
For now, we are simply going to write the dummy tweets that we created in the previous lesson into a local cache file, read from it & show it to the user when the Tweet List screen loads. In subsequent lesson, we are going to move the writing tweets part to an asynchronous process using AsyncTask.
1010

11-
1. <%= link_to "Serializing & writing tweets to local file", app_tutorial_lesson_with_token_path(@app_name, AppLesson.find_by_number(@current_lesson.number + 1).lesson.token) %>
12-
13-
2. <%= link_to "Reading from local file & showing the tweets", app_tutorial_lesson_with_token_path(@app_name, AppLesson.find_by_number(@current_lesson.number + 2).lesson.token) %>
14-
11+
<div>
12+
<% lessons_of_mod_4 = AppLesson.find_all_by_module_number(4) %>
13+
<% count = 1 %>
14+
<% lessons_of_mod_4.each do |l| %>
15+
<%= count %> .
16+
<% count = count + 1 %>
17+
<%= link_to l.lesson.title, app_tutorial_lesson_with_token_path(@app_name, l.lesson_module.lesson.token, l.lesson.token) %>
18+
<br/>
19+
<% end %>
20+
</div>

0 commit comments

Comments
 (0)