Skip to content

Commit 6cfd6ef

Browse files
committed
Add lesson list to module 1 intro
1 parent 08af5f9 commit 6cfd6ef

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

twitter-client-tutorial/_iteration_1_plan.html.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,12 @@ A good way to start is by building the app skeleton (just the user interface).
2121
<%= image_tag "twitter-client/twitter-details-screenshot.png", alt: "Twitter Detail Screenshot", title: "Twitter Detail Screenshot" %>
2222
<p class="ac">Twitter Detail Screenshot</p>
2323
<br/>
24-
25-
<p class="ac"><%= link_to "Next Lesson", app_tutorial_lesson_with_token_path(@app_name, AppLesson.find_by_number(@current_lesson.number + 1).lesson.token), class: "btn btn-danger" %></p>
24+
Here are the lessons of this module <br/>
25+
<% lessons_of_mod_1 = AppLesson.find_all_by_module_number(1) %>
26+
<% count = 1 %>
27+
<% lessons_of_mod_1.each do |l| %>
28+
<%= count %> .
29+
<% count = count + 1 %>
30+
<%= link_to l.lesson.title, app_tutorial_lesson_with_token_path(@app_name, l.lesson_module.lesson.token, l.lesson.token) %>
31+
<br/>
32+
<% end %>

0 commit comments

Comments
 (0)