‘block_path’ is an interesting beast. It looks like a typical view helper (i.e., _path, _url), but it introspects the content block object and creates an array of objects and values that will be used by ‘link_to’ to generate a path. (For more details on this style of route specification, see
Creating Paths and URLs From Objects, section '2.8 Creating Paths and URLs From Objects')
The engine can be the default cms engine that comes with BrowserCms, the vanilla Rails engine, or another custom engine.
The action parameter is filled with special bcms actions, like ‘:versions’.
Then using the block, objects are extracted and included in the path; these objects will be translated into keys values for tables (this is nothing new).
No comments:
Post a Comment