Yes it's in the manual further down the page: http://cookbook.hobocentral.net/manual/controllers#automatic_redirection
I've just expanded part of that chapter. The `:redirect` option may be one of: - Symbol: redirects to that action using the current controller and model. If you have `show_action :detail` in your controller, then you could use `:redirect => :detail`. - Hash or String: [redirect\_to from Rails](http://api.rubyonrails.org/classes/ActionController/Redirecting.html) is used. Examples: `:redirect => {:controller => "sites", :action => :admin, :id => this.site}` and `:redirect => site s_admin_path(this.site)`. `rake routes` lists available paths that can be used. - Array: `object_url` is used. I've never used the array form. Does anybody have an example? Bryan On Fri, Oct 14, 2011 at 4:33 PM, hobo_hippy <[email protected]> wrote: > In the hobo manual under Controllers, Automatic Redirection, > the :redirect parameter, an example is given as follows, > > def update > hobo_update :redirect => my_special_place > end > > > I want to use something like this, but what is my_special_place? How > do I define my own special place? Is there a way to just tell it to > reload the same page? Or go to the last page visited? > > If there's documentation on how this works, I'd appreciate a link. Any > explanation would also be greatly appreciated. > > Thanks! > > -- > 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. > > -- 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.
