launchscout / nku

NKU Class Spring
5 stars 14 forks source link

Flash? #23

Closed awh112 closed 10 years ago

awh112 commented 10 years ago

Has anyone got theirs to do anything? I figure we should do something like this:

if @student.update(params[:student].permit(:name, :nickname, :email, :image))
      redirect_to students_path, flash: "You have successfully edited your account."

but that doesn't seem to do anything. Any ideas?

awh112 commented 10 years ago

Ok, so I forgot to add the markup to actually do something with the flash. Github is the best rubber duck debugger there is.

If anyone else is wondering, take a look at the flash chapter here for a nice overview: http://ruby.railstutorial.org/chapters/sign-up#sec-the_flash