views:

101

answers:

0

NOOB here. I'm trying to render a partial (refresh the results when someone clicks on a check box) but for some reason rails keeps loading the full page where the partial should be! I know this must have something to do with a misplaced or nonexistent :layout => false, but I have no idea where to fix it. THanks!

Code:

Controller:

... ... define results_container ... render :partial => 'results_container', :layout => false

end

View:

... ... form... <%= observe_form 'sp_cuisines_short', :action=> 'results_container', :update => 'results_container', :method => "GET", :frequency => 0 %>

The result is that my page looks like when you hold two mirrors facing each other... could I need to specify something different in my observe form?

Thanks! Brett