I am using the link_to_remote helper to call an action using and XMLHttp
request. The action method has a call to render another action if a
condition is met:
if session[:prebooking].start_date != nil
render :action => ‘check_rate’
the condition is being met, i.e. I checked that
‘session[:prebooking].start_date != nil’ is in fact true, but program
fails to render ‘check_rate’.
Is this because I am using a HTTP post request to call the action? How
do I get ‘check_rate’ to render if the condition is met?