Creating records using RJS in rails
- by Elliot
Hey Everyone,
so I've watched http://railscasts.com/episodes/43-ajax-with-rjs
but I have a question:
In my view I have the following:
<div id="testly">
<%= render :partial => "test" %>
</div>
This works.
Using create.rjs to change the content in this div, I have the following in my create.rjs file:
page.replace_html :testly, :partial =
'test'
Simply put, this should just refresh the partial right? But its not working... Would love any suggestions!