ruby on rails - Alert messages do not always show up on production (Heroku) -


There is a bit of code from the controller here:

  flash [: warning] = "please specify input" redirect_to (root_url)  

And I present it with the following code in application.html:

 ! - Display Notices - & gt; & Lt; Div class = "& lt;% = 'shift_no_breadcrumb' if yield (: crumbs) .blank?% & Gt;" & Gt; & Lt;% Flash. Key, value | & Gt%; & Lt;% = content_tag (: div, value ,: class = & gt; ("alert alert - # {key}"))% & gt; & Lt;% end% & gt; & Lt; / Div & gt;  

It looks very spatial on production. Out of 10 attempts to perform the same exact action, the message can be seen anywhere from 3 to 6 times. I also checked the source code and can verify that the message sometimes appears and sometimes Does not happen. Is there anything in the order in which the assets are full? I am very worried about this issue .... Does anyone have any information about what is behind this?


Comments

Popular posts from this blog

sqlite3 - UPDATE a table from the SELECT of another one -

c# - Showing a SelectedItem's Property -

javascript - Render HTML after each iteration in loop -