Skip to content

Commit

Permalink
Add full filepaths to README tutorial
Browse files Browse the repository at this point in the history
  • Loading branch information
zmillman committed Sep 4, 2015
1 parent 51f93a9 commit 7509718
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ class LessonsController
end
```

Write the template for your list of lessons in `index.html.erb`:
Write the template for your list of lessons in `app/views/lessons/index.html.erb`:

```erb
<div class="infinite-table">
Expand All @@ -104,7 +104,7 @@ Write the template for your list of lessons in `index.html.erb`:
</div>
```

...and `_lessons.html.erb`:
...and `app/views/lessons/_lessons.html.erb`:

```erb
<% @lessons.each do |lesson| %>
Expand All @@ -115,7 +115,7 @@ Write the template for your list of lessons in `index.html.erb`:
<% end %>
```

Append new data to the table in `index.js.erb`:
Append new data to the table in `app/views/lessons/index.js.erb`:

```javascript
// Append new data
Expand All @@ -133,7 +133,7 @@ $("<%=j render(:partial => 'lessons', :object => @lessons) %>")
At this point, the pagination link at the bottom of your table should allow you
to load the next page without refreshing. Finally, we trigger the next page load
with the `infinitePages` plugin in `lessons.js.coffee`:
with the `infinitePages` plugin in `app/assets/javascripts/lessons.js.coffee`:
```coffee
$ ->
Expand Down

0 comments on commit 7509718

Please sign in to comment.