title: Error while processing route: No model was found for - Ember.js Guides
body: <p>Learning Ember with Ember.js guides. While practicing ToDo application, I renamed model from <code>todo</code> to <code>tododata</code> but I get <code>Error while processing route: todos No model was found for 'tododata' Error: No model was found for 'tododata'})</code>. </p>
  
  <p>Renaming model back to <code>todo</code> works fine.  Not sure what is wrong (except the fact there is CamelCase is being used).  Would appreciate some direcction</p>
  
  <p>My setup:</p>
  
  <p>Model: In guide <code>Todos.Todo</code> but I named it <code>Todos.TodoData</code> for clarity.</p>
  
  <pre><code>Todos.TodoData = DS.Model.extend({
  ...
  });
  </code></pre>
  
  <p>Router: In guide <code>...find('todo');</code>, I use <code>...find('tododata');</code></p>
  
  <pre><code>Todos.TodosRoute = Ember.Route.extend({
      model: function() {
          return this.store.find('tododata');
      }
  });
  </code></pre>
  
  <p>Controller: In guide it was <code>todo</code>, mine is <code>tododata</code></p>
  
  <pre><code>    Todos.TodosController = Ember.ArrayController.extend({    
          actions: {
          ...
                  var todo = this.store.createRecord('tododata', {
                      ...
                  });
          ...
          }
  });
  </code></pre>
  
  <p>Using <code>TodoData</code> instead of <code>tododata</code> works fine but I am not sure if this is a correct usage (because my thinking is <code>tododata</code> is an instance of <code>TodoData</code>).</p>