Skip to content

Commit

Permalink
fix a few typos and make the hyperlink clickable
Browse files Browse the repository at this point in the history
  • Loading branch information
chickenkiller authored and wagenet committed May 12, 2011
1 parent edc8f7a commit c8490e3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/getting_started_2.textile
Expand Up @@ -11,7 +11,7 @@ endprologue.

h3. Prepare the Application

In the "first part of this guide":html_based.html, you learned how to build a basic Todos application. You now know how to define your models, views, and controllers, then describe how they interact via bindings. So far, however, you have had no way to persist the information between page refreshes.
In the "first part of this guide":getting_started.html, you learned how to build a basic Todos application. You now know how to define your models, views, and controllers, then describe how they interact via bindings. So far, however, you have had no way to persist the information between page refreshes.

The best way to change that is to use SproutCore's Data Store framework to manage records. An instance of +SC.Store+ is responsible for managing the lifecycle of your records. Behind the scenes, the store uses an +SC.DataSource+ to translate retrieve data from your server and persist changes back.

Expand Down Expand Up @@ -73,7 +73,7 @@ Todos = SC.Application.create({
We just created a new +SC.Store+ and told it to load its data from the fixtures we previously defined. Later in the development cycle, when you want to connect your application to a real server, you can just change the argument
of the +from()+ method to something like +"MyDataSource"+.

Let's make sure that everything is working. If you haven't already, run +sc-server+ from your application directory, then open +http://localhost:4020/todos+ in your web browser. Open your browser's JavaScript console and type the following commands:
Let's make sure that everything is working. If you haven't already, run +sc-server+ from your application directory, then open "http://localhost:4020/todos":http://localhost:4020/todos in your web browser. Open your browser's JavaScript console and type the following commands:

<javascript>
records = Todos.store.find(Todos.Todo)
Expand All @@ -94,7 +94,7 @@ SC.ready(function() {
templateName: 'todos'
});

var todos = Todos.store.find(Todos.Todo)
var todos = Todos.store.find(Todos.Todo);
Todos.todoListController.set('content', todos);
});
</javascript>
Expand Down

0 comments on commit c8490e3

Please sign in to comment.