- Rails 3 routing: include flash params with root redirect
- root :to => redirect("/dashboard")
- root :to => redirect do |p, req|
- req.flash.keep
- "/dashboard"
- end
- root :to => redirect { |p, req| req.flash.keep; "/dashboard" }
- redirect_to root_url, :notice => "test flash notice"
- <% if request.referer.scan('yoursitename').size == 0 %>
- <%= create your own notice here %>
- <% end %>
- redirect_to '/dashboard'