<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -5,16 +5,16 @@ class DemoController &lt; ApplicationController
   end
   
   def simple_example
-    @report = ActiveWarehouse::Report::TableReport.new(
+    @view = ActiveWarehouse::Report::TableReport.new(
       :title =&gt; &quot;Simple Report&quot;,
       :cube_name =&gt; :regional_sales,
       :column_dimension_name =&gt; :date,
       :row_dimension_name =&gt; :store
-    )
+    ).view(params)
   end
   
   def example1
-    @report = ActiveWarehouse::Report::TableReport.new(
+    @view = ActiveWarehouse::Report::TableReport.new(
       :title =&gt; &quot;Example 1&quot;,
       :cube_name =&gt; :regional_sales,
       :column_dimension_name =&gt; :date,
@@ -25,10 +25,10 @@ class DemoController &lt; ApplicationController
       :row_dimension_name =&gt; :store,
       :row_hierarchy =&gt; :region,
       :format =&gt; {:gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }}
-    )
+    ).view(params)
   end
   def example2
-    @report = ActiveWarehouse::Report::TableReport.new(
+    @view = ActiveWarehouse::Report::TableReport.new(
       :title =&gt; &quot;Example 2&quot;,
       :cube_name =&gt; :regional_sales,
       :column_dimension_name =&gt; :date,
@@ -36,10 +36,10 @@ class DemoController &lt; ApplicationController
       :row_dimension_name =&gt; :store,
       :row_hierarchy =&gt; :location,
       :format =&gt; {:gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }}
-    )
+    ).view(params)
   end
   def example3
-    @report = ActiveWarehouse::Report::TableReport.new(
+    @view = ActiveWarehouse::Report::TableReport.new(
       :title =&gt; &quot;Example 3&quot;,
       :cube_name =&gt; :product_sales,
       :column_dimension_name =&gt; :date,
@@ -47,7 +47,7 @@ class DemoController &lt; ApplicationController
       :row_dimension_name =&gt; :product,
       :row_hierarchy =&gt; :product,
       :format =&gt; {:gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }}
-    )
+    ).view(params)
   end
   def example4
     # TODO: this is ugly as sin right now. I need to clean it up and put it into a helper
@@ -83,7 +83,7 @@ class DemoController &lt; ApplicationController
     params[:rd] = @row_dimension = @row_dimension.to_sym
     params[:rh] = @row_hierarchy = @row_hierarchy.to_sym
     
-    @report = ActiveWarehouse::Report::TableReport.new(
+    @view = ActiveWarehouse::Report::TableReport.new(
       :title =&gt; &quot;Example 4&quot;,
       :cube_name =&gt; :product_sales,
       :column_dimension_name =&gt; @col_dimension,
@@ -91,7 +91,7 @@ class DemoController &lt; ApplicationController
       :row_dimension_name =&gt; @row_dimension,
       :row_hierarchy =&gt; @row_hierarchy,
       :format =&gt; {:gross_margin =&gt; Proc.new {|value| sprintf(&quot;%.2f&quot;, value) }}
-    )
+    ).view(params)
   end
   
   def fact_list</diff>
      <filename>app/controllers/demo_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,4 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example1'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_report(@report, :report_class =&gt; 'report') %&gt;
\ No newline at end of file
+&lt;%= render_report_from(@view, :report_class =&gt; 'report') %&gt;</diff>
      <filename>app/views/demo/example1.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,4 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example2'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_report(@report, :report_class =&gt; 'report') %&gt;
\ No newline at end of file
+&lt;%= render_report_from(@view, :report_class =&gt; 'report') %&gt;</diff>
      <filename>app/views/demo/example2.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -3,4 +3,4 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example3'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_report(@report, :report_class =&gt; 'report') %&gt;
\ No newline at end of file
+&lt;%= render_report_from(@view, :report_class =&gt; 'report') %&gt;</diff>
      <filename>app/views/demo/example3.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 &lt;div style=&quot;float:right;&quot;&gt;
-  &lt;%= form_tag %&gt;
+  &lt;% form_tag '/demo/example4' do -%&gt;
   &lt;div&gt;Column: &lt;%= select_tag :col_pivot, options_for_select(@pivots.collect {|pivot| [pivot[:name], pivot[:index]] }) %&gt; Row: &lt;%= select_tag :row_pivot, options_for_select(@pivots.collect {|pivot| [pivot[:name], pivot[:index]] }) %&gt; &lt;%= submit_tag 'Refresh' %&gt;&lt;/div&gt;
-  &lt;%= end_form_tag %&gt;
+  &lt;% end -%&gt;
 &lt;/div&gt;
 
 &lt;p&gt;
@@ -9,4 +9,4 @@
   &lt;%= link_to 'Top of Report', :action =&gt; 'example4'%&gt;
 &lt;/p&gt;
 
-&lt;%= render_report(@report, :report_class =&gt; 'report') %&gt;
\ No newline at end of file
+&lt;%= render_report_from(@view, :report_class =&gt; 'report') %&gt;</diff>
      <filename>app/views/demo/example4.rhtml</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1 @@
-&lt;%= render_report @report %&gt;
\ No newline at end of file
+&lt;%= render_report_from @view %&gt;</diff>
      <filename>app/views/demo/simple_example.rhtml</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0618185cac128e256fac450bd6b70367fa969b77</id>
    </parent>
  </parents>
  <author>
    <name>Bob Cotton</name>
    <email>bob.cotton@rallydev.com</email>
  </author>
  <url>http://github.com/bcotton/activewarehouse-demo/commit/622071bed499232cf67b418fcc929b541ced8be5</url>
  <id>622071bed499232cf67b418fcc929b541ced8be5</id>
  <committed-date>2008-05-12T06:35:43-07:00</committed-date>
  <authored-date>2008-05-12T06:35:43-07:00</authored-date>
  <message>Use new render_report_from to use the view, not the report</message>
  <tree>2b0691f3a60e37c3c875452a3608db26c8988ba9</tree>
  <committer>
    <name>Bob Cotton</name>
    <email>bob.cotton@rallydev.com</email>
  </committer>
</commit>
