Permalink
Browse files

Working full AJAX cycle

  • Loading branch information...
1 parent cfed11b commit abcbbbc67eb0c458273b629903038c04bab90b21 @newfront committed Dec 21, 2010
@@ -19,8 +19,8 @@ def find_me_info
#render :text => "Last Tweet : #{@status.status_update}"
# the partial is rendered out using the local variable from the parameters params[:what_info]
- render :text => @status.status_update
- #render :partial => '/partials/add_content_now', :locals =>{:my_info => the_info}
+ #render :text => @status.status_update
+ render :partial => '/partials/add_content_now', :locals =>{:my_info => @status}
end
@@ -1,10 +1,6 @@
<%
+#my_info = @status from main_controller
%>
<div id="add_content_now">
- <p><%= my_info %></p>
- <ul>
- <li>ONE</li>
- <li>TWO</li>
- <li>THREE</li>
- </ul>
+ <p><%= my_info.status_update %></p>
</div>

0 comments on commit abcbbbc

Please sign in to comment.