sgruhier / foundation_rails_helper

Rails Helper for Zurb Fondation framework
MIT License
153 stars 84 forks source link

display_flash_messages return nil on redirection #175

Closed Sohair63 closed 7 years ago

Sohair63 commented 7 years ago

This is the problem that I start facing of HTML request Format. After redirect_to some_path, notice: 'some message' UI does not show any alert or notice.

NOTE THAT: I have tried flash.now flash.keep and flash[:notice], nothing helped me.

I am Using:

dsandstrom commented 7 years ago

I can't reproduce so I have some follow questions:

  1. Do you have <%= display_flash_messages %> in your layout file?
  2. If so, view the browser source and look for a <div class="flash callout success" data-closable=""> tag after redirecting.
  3. If not there, does it work with foundation 6.2?
Sohair63 commented 7 years ago

Yes

  1. I have that.
  2. Yes this is there.
  3. I am already using foundation 6,

I will check with 6.2.

render is working fine with notice/alerts and form Abide Validation, not redirect.

dsandstrom commented 7 years ago

Is the html for the flash notice in the source after a redirect? If so, it sounds like this gem is doing it's job. It may be a css issue then. Am I misunderstanding something?

The reason I ask about 6.2/6.3 is because I haven't upgraded any apps to Foundation 6.3, so I'm not sure if there is an issue with that, but I doubt it.

dsandstrom commented 7 years ago

Going to close this since the lack of response. If this is still an issue, please provide an example project that I can reproduce the problem on.