May 2023
Intermediate to advanced
476 pages
12h 5m
English
Let’s start with adding links to various administration functions to the sidebar in the layout and have them show up only if a :user_id is in the session:
| | <!DOCTYPE html> |
| | <html> |
| | <head> |
| | <title>Pragprog Books Online Store</title> |
| | <meta name="viewport" content="width=device-width,initial-scale=1"> |
| | <%= csrf_meta_tags %> |
| | <%= csp_meta_tag %> |
| | <%= stylesheet_link_tag "inter-font", "data-turbo-track": "reload" %> |
| | <%= stylesheet_link_tag "tailwind", "data-turbo-track": "reload" %> |
| | |
| | <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> |
| | <%= javascript_importmap_tags ... |
Read now
Unlock full access