In my application I show messages to users like this way.
<% flash.each do |key, value| %>
<div class="alert alert-<%= key %> alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">×</span></button>
<%= value %>
</div>
<% end %>
I have following lines in my application
.alert-notice {
@extend .alert-warning;
}
When I redirect user with redirect_to root_url, :notice => 'messages' everything perfect. Notice message can be seen. However when I direct user with redirect_to root_url, :info => 'messages', No message can be seen. I have debugged code and realised that flash is empty that condition.
It's ok:
redirect_to root_url, :notice => 'messages'
Here is problem:
redirect_to root_url, :info => 'messages'
Any suggestions ?
Thanks.