Advanced Rails - Building Industrial-Strength Web Apps in Record Time
Benefits of a RESTful Architecture | 205 stored for as long as the sessions are valid (if sessions last an hour, the server must ...
206 | Chapter 7: REST, Resources, and Web Services Conceptual Simplicity The cornerstone of REST is simplicity. The decision to ...
Benefits of a RESTful Architecture | 207 be the same as if no cache were involved. What this means in practice depends not only ...
208 | Chapter 7: REST, Resources, and Web Services the entire body. But if the calculated ETag matches the one the client sent, ...
RESTful Rails | 209 Uniformity One of the biggest advantages afforded by the REST guidelines is a uniform inter- face. The verbs ...
210 | Chapter 7: REST, Resources, and Web Services One of the key points in the presentation was that resources can be more than ...
RESTful Rails | 211 Resource-Based Named Routes Resource routing encapsulates all of the Rails CRUD actions into one routing sta ...
212 | Chapter 7: REST, Resources, and Web Services You may occasionally see URIs like/people/1;editwhen reading information abou ...
RESTful Rails | 213 => "/people/1" >> app.person_path(:id => 1, :section => 'enrollment') => "/people/1?sectio ...
214 | Chapter 7: REST, Resources, and Web Services The named routes will only be recognized given the proper HTT Pmethod; if cal ...
RESTful Rails | 215 nested, and friends are always scoped to a person, it may make more sense to use controller namespaces. This ...
216 | Chapter 7: REST, Resources, and Web Services The named routes for singleton resources are similar to those for collections ...
RESTful Rails | 217 Although this uses JavaScript to accomplish its primary action, it is still safe (though nonfunctional) in b ...
218 | Chapter 7: REST, Resources, and Web Services The respond_tomethod yields a responder (an instance of ActionController:: Mi ...
RESTful Rails | 219 New MIME types can be registered withMime::Type.register. This method takes four arguments: the primary MIME ...
220 | Chapter 7: REST, Resources, and Web Services latest version; if they match, the client has the latest version and the serv ...
RESTful Rails | 221 Custom caching Making cache control more granular requires coupling the caching a bit more with the applicat ...
222 | Chapter 7: REST, Resources, and Web Services conditionalPUTis used to prevent stale updates by makingPUTrequests condition ...
RESTful Rails | 223 the response belongs. The categories are divided in this way so that a client that does not understand an ob ...
224 | Chapter 7: REST, Resources, and Web Services We will be using thescaffoldgenerator (formerlyscaffold_resource)to build som ...
«
7
8
9
10
11
12
13
14
15
16
»
Free download pdf