Questions tagged [flash-message]

Flash messages are used to notify the user that something has occurred. For example, a record has been created or they attempted to access something they were not authorized to do.

408 questions
0
votes
1 answer

Devise redirects to root after I redirect to sign_in

I'm trying to add a new login condition to an app that uses Devise. If a request comes from an IP that's not on my whitelist, I want to prevent the login and redirect back to the sign_in page with a flash message explaining that the login was from…
bimbom22
  • 4,510
  • 2
  • 31
  • 46
0
votes
1 answer

are controllers necessary to send flash messages in rails?

this is kind of a newbie question, sorry but...if a model has no controllers, how could i perform a flash[:notice]? for example in https://github.com/tute/merit i noticed that it just has models and no controllers. i know that it would be wise to…
Sasha
  • 3,281
  • 7
  • 34
  • 52
-1
votes
1 answer

Flask flash message wont show

I have a web application with flask in which I can upload a file to an s3 storage. However, I want the users to track the upload progress of their files. For this, I'm using flash which I want to update frequently with the new upload percentage. The…
jfst
  • 1
  • 3
-1
votes
1 answer

Assigning flash categories to iterated variables

I'm trying assign flash categories to an iterable variable that will generate within a form. My HTML: