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...
..
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
>
<head>
<meta http-equiv="Content-Type"
content="application/xhtml+xml;
charset=UTF-8" />
<title>PDM</title>
<style type="text/css">
..and more....
where is the trick ?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---