teense of clarification about urlRoot being a rare override

This commit is contained in:
Jeremy Ashkenas
2012-08-28 13:53:13 -04:00
parent db9545c119
commit cebc33a661

View File

@@ -1216,10 +1216,11 @@ account.set({access: "unlimited"}, {
<p id="Model-urlRoot">
<b class="header">urlRoot</b><code>model.urlRoot or model.urlRoot()</code>
<br />
Specify a <tt>urlRoot</tt> if you're using a model outside of a collection,
Specify a <tt>urlRoot</tt> if you're using a model <i>outside</i> of a collection,
to enable the default <a href="#Model-url">url</a> function to generate
URLs based on the model id. <tt>"/[urlRoot]/id"</tt><br />
Note that <tt>urlRoot</tt> may also be defined as a function.
Normally, you won't need to define this.
Note that <tt>urlRoot</tt> may also be a function.
</p>
<pre class="runnable">