Skip to content

Instantly share code, notes, and snippets.

View bsgreenb's full-sized avatar

Benjamin Greenberg bsgreenb

View GitHub Profile
def generic_render(path, flash_hash = {})
flash_hash.each do |k, v|
flash.now[k] = v
end
if xhr?
@modal_path = path
render 'shared/modal_replace'
else
render path