Sha256: 3bf02416f11b3ba8cac878f4b5ed1a67fd8224f7c8ed9d8b7fbe37ebfa15b39e
Contents?: true
Size: 1.04 KB
Versions: 76
Compression:
Stored size: 1.04 KB
Contents
class RjsSpecController < ApplicationController set_view_path File.join(File.dirname(__FILE__), "..", "views") def replace_html end def insert_html end def replace end def hide_div end def hide_page_element end def replace_html_with_partial end def render_replace_html render :update do |page| page.replace_html 'mydiv', 'replacement text' page.replace_html 'myotherdiv', 'other replacement text' end end def render_replace_html_with_partial render :update do |page| page.replace_html 'mydiv', :partial => 'rjs_spec/replacement_partial' end end def render_insert_html render :update do |page| page.insert_html 'mydiv', 'replacement text' end end def render_replace render :update do |page| page.replace 'mydiv', 'replacement text' end end def render_hide_div render :update do |page| page.hide 'mydiv' end end def render_hide_page_element render :update do |page| page['mydiv'].hide end end end
Version data entries
76 entries across 76 versions & 12 rubygems