Displaying 2 results from an estimated 2 matches for "add_flash".
Did you mean:
add_flags
2008 May 20
3
Flash message not shown after redirected by verify
I have the following snippet in a controller.
verify :params => "post", :only => [:create, :update, :destroy],
:add_flash => {"notice" => "Invalid Access"}, :redirect_to => {:action
=> ''list''}
If I directly access /posts/create by typing URL (GET), the program
redirects to the "list" action, but the flash message I added is not
shown in the redirected page....
2009 Dec 02
14
root_path and root_url undefined
Hi all,
I''ve just started working on another RoR project after a couple of months
away. I''m having trouble with named routes, specifically root_*
In previous apps I''ve used root_path and root_url without any problems, but
in this project (2.3.2 - the same as my last project where I used it) it
comes up undefined.
I''ve double and triple checking my routes.rb,