Finally, I found a workaround that implements my own (simple) flash messages and passing them through the parameters from one request to another.
First of all, I rewrote default_url_optionsin application_controller.rbto add a: my_flash param to each request:
def default_url_options
{ :my_flash => @my_flash }
end
Then always in application_controller.rbI wrote my_flash_from_paramsbefore_filter to set the variable @my_flash:
def my_flash_from_params
@my_flash = params[:fb_flash]
end
, _my_flash.html.erb partial application.html.erb
<div class="my_flash">
<%= my_flash %>
</div>
:
<%= render :partial => "layouts/my_flash", :locals => {:my_flash => @my_flash} if @my_flash %>
, . default_url_options.