Displaying 1 result from an estimated 1 matches for "time_box".
Did you mean:
pipe_box
2008 Apr 13
3
Can't get simple link_to_remote to work
...lt;head> should have this:
<%= javascript_include_tag :defaults %>
My test page view should have a div with an id and the ERB like this:
<%= link_to_remote ''Click Me'',
:url => {:action => ''show_time'',
:update => ''time_box''} %>
<div id="time_box"></div>
The controller for my test page should have this:
def show_time
layout false
render_text "Time: " + DateTime.now.to_s
end
I know there''s various options for several of the details in there,...