Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

Can't seem to get it working. #12

Closed
rmaes4 opened this issue Sep 24, 2017 · 2 comments
Closed

Can't seem to get it working. #12

rmaes4 opened this issue Sep 24, 2017 · 2 comments

Comments

@rmaes4
Copy link

rmaes4 commented Sep 24, 2017

Hey so I followed all of the instructions. I'm trying to add this globally. No matter what I do I can't seem to get the flash messages to render in my HTML. I copied and pasted the code from the README. Is there a way I can debug what is going on? I don't get any errors or anything. Thanks.

@rmaes4
Copy link
Author

rmaes4 commented Sep 24, 2017

I can see the flash when printing request.storage in the console but I can't seem to get it to render

@rmaes4
Copy link
Author

rmaes4 commented Sep 24, 2017

Well I figured it out. I was calling my views like so
return try self.view.make("index/index")
turns out I needed to do
return try self.view.make("index/index", for: req)

Hope this helps anyone else. Maybe add this to the guide, it wasn't obvious to me.

@rmaes4 rmaes4 closed this as completed Sep 24, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant