sugary ruby syntax in a respond_to block
an after_filter i’m using in swivel.
def reset
respond_to do |format|
format.html do nothing end
format.xml do session[:user_id] = nil end
end
true
end
About this entry
You’re currently reading “sugary ruby syntax in a respond_to block,” an entry on e-huned.com
- Published:
- 04.26.07 / 10am
- Category:
- personal
No comments
Jump to comment form | comments rss [?] | trackback uri [?]