Hi,
I've created a before filter to stop link manipulation and
unauthorized access
def login_lock
if !current_user.administrator?
redirect_to root_path
end
end
I did this because I have an Image model with paperclip and I still
need the images them-selfs accessible for the purpose of displaying
children in a model thats visible to everybody so doing this via
setting the view permitted to !admin? in the permissions system wasn't
an option since the images would not display and all I need to protect
is the listing of all images on the site.
Anyways... I wanted to add a flash notice visible after the redirect
to the home page. Something like
flash[:notice] = "You do not have permission to access that area"
but regardless if i put it before or after the redirect and if I use
flash or flash.now the message just doesn't show up. I'd like to add
that standard hobo flash messages are working great in both languages
that the site uses. any ideas ? I have got no clue whats wrong.
Rails 2.3.5 & Hobo 1.0.1, Mongrel 1.1.5, Mozilla Firefox 3.6.12,Linux
Ubuntu 10.04 (lucid) 32bit, Kernel 2..6.32.25-generic-pae (fully up to
date), GNOME 2.30.2
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/hobousers?hl=en.