Displaying 2 results from an estimated 2 matches for "flash_notice".
2006 May 02
2
flash not shown
I am using the following code (inspired by one of the books) to check if
the user''s session should have timed out.
# Check to see if the user has been inactive for longer than the
# expiry period. If they have, reset the session.
def check_timeout
if session[:expires_at] != nil
@time_left = (session[:expires_at] - Time.now).to_i
unless @time_left > 0
2009 Mar 30
0
Trying to bind an appended partial that has REST_in_place attached to it with jquery?
In my create.js.erb view I am creating a new model in the view. On
creation I want to have the appended partial in the dom and
selectable
so I can click it''s name and run the plugin REST in place with
Jquery.
#create.js.erb
$("#new_show").before(''<div id="flash_notice"><%= escape_javascript
(flash.delete(:notice)) %></div>'');
$("#shows").append("<%= escape_javascript(render(:partial => @show))
%>").effect("highlight", {}, 3000);
$(".rest_in_place").livequery(''click'',...