flash not displaying

0 views
Skip to first unread message

rfw21

unread,
Mar 24, 2009, 3:56:51 AM3/24/09
to resource_controller
Hello list,
I am trying to set the flash in my r_c controllers but whatever I try,
it's not showing up on the rendered page.

As an example I am using:

update do
flash "You've been updated"
end

I've also tried

update do
wants.html do
flash "this doesn't work either"
end
end

Even setting flash[:notice] directly still doesn't work. When the page
is rendered, the flash hash just contains an empty string for
the :notice key.

Has anybody else experienced this problem?

best,
Rob

James Golick

unread,
Mar 24, 2009, 9:00:07 AM3/24/09
to resource_...@googlegroups.com
where are you expecting the flash to be set? Are you redirecting or rendering on those pages?
Reply all
Reply to author
Forward
0 new messages