You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Speaking of fade effects: Let's add a second page in order to show, how you can use Matestacks app and `transition` component in order to implement dynamic page transitions without full browser page reload and without adding any JavaScript!
1239
1244
1240
-
## Implement dynamic page transitions
1245
+
## Implement Dynamic Page Transitions
1241
1246
1242
1247
We will create a profile page in order to save the username in a session cookie rather than asking for the username on the post form! Obviously, you would use proper user management via something like `devise` in a real world example!
1243
1248
1244
1249
*[x] Add an view helper method in order to access the session cookie from a Matestack page
1245
1250
1251
+
```bash
1252
+
touch app/helpers/cookie_helper.rb
1253
+
```
1254
+
1246
1255
`app/helpers/cookie_helper.rb`
1247
1256
1248
1257
```ruby
@@ -1256,7 +1265,8 @@ end
1256
1265
```
1257
1266
1258
1267
*[x] Remove the username input from the post form
1259
-
*[x] Remove the toggle components from the post index page; we will add them to the app in a bit enabling the new profile page to trigger them as well!
1268
+
*[x] Remove the toggle components from the post index page; we will add them to the app in a moment, enabling the new profile page to trigger them as well!
0 commit comments