I am testing a new intro for my site… it was running well until this
modification
on first url request, the user get directed to an intro page, with an
‘intro’ layout
class AccountController < ApplicationController
layout :choose_layout
…
def choose_layout
[“intro”].include?(action_name) ? “intro” : “application”
end
end
the intro page get displayed…
upon data entered (zip code only) and checked (there is an Ajax action
in it …)
I redirect to another controller to display the normal home page
…
def check_code
…
redirect_to :controller => ‘radio’, :action => ‘display_city’, :id =>
current_city, :zip_code => current_zip_code
end
the redirection is OK, and the display_city.html code is generated…
(checked the response in log), BUT there is NO display in the browser
window…
…
PDM ..and more.... where is the trick ?