August 2025
Intermediate to advanced
270 pages
6h 16m
English
As we learned in Chapter 3, Navigate Gracefully with Path Configuration, our path configuration helps us keep our business logic on the server. This creates low-maintenance, server-driven apps. In our scenario here, instead of hard-coding which URL paths to render as maps, we can apply path properties from our remote JSON file.
Start by adding a new rule to the path configuration on the server, matching the path for a hike’s map to assign the view_controller property.
| | class ConfigurationsController < ApplicationController |
| | def ios_v1 |
| | render json: { |
| | settings: {}, |
| | rules: [ |
| | { |
| | patterns: [ |
| | "/new$", |
| | "/edit$" |
| | ], |
| | ... |
Read now
Unlock full access