search for: get_live_price

Displaying 1 result from an estimated 1 matches for "get_live_price".

2006 Aug 16
2
Q on AJAX with respect to DRY
...at the AJAX call returns? I ask because I initially had some trouble with a simple dynamic refresh using AJAX. With "render :layout => false" in the controller, the instance variables do not appear to get passed from controller to view. For instance, I tried this: controller: def get_live_price @price = Frame.find(:first, :conditions => ["blah = ?", params[:frame]]).price render :layout => false end view: <%= @price %> ...and it didn''t work - I got errors about the instance variable not existing. eventually I ended up with the following, which works...