'<pre>
'< 'def tag = "trash" attrs ="no-redirect" >
< delete-button with="&this" after-submit="#{redirect_uri}" title = " #{tooltip}"
label="Erase !" class="nav-button" / >
</ def>'
</pre>
redirects in Rails & Hobo are done in the controller, especially in 5 year old versions of Hobo. Hobo 2.0 has other ways of doing this, but in Hobo 0.8, this is your only option:
def destroy
hobo_destroy
redirect_to redirect_url
end
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.