On Mon, Feb 18, 2013 at 7:35 AM, martin devapitchai
<lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:
> Kindly suggest me to skip filter(detect_os) and load mobile/index if
> user clicks on "no thanks"
How about this:
- Have the filter on mobile/index check a slot in the session hash (or
if they''re logged in by then, maybe a column in the user preferences
record). Let''s call it mobile_choice, so it''s
session[:mobile_choice]
or current_user.mobile_choice.
* If there is none, set it to the detected OS and proceed with redirection.
* Else if the value is "generic", stay there.
* Else redirect to the index page for the chosen OS.
- On the OS-specific pages, if they click "No thanks" (which you might
not even give them if they weren''t redirected), set "generic"
as the
value, and redirect to the generic-mobile page.
- Alternately, don''t have the generic-mobile index forcibly redirect,
but ask via a popup whether they''d like to be redirected. If they say
no, set the value to "generic" and stay there. Then there''s
no need
for the additional step of going via the OS-specific page.
I''d suggest that in any case, you give them the ability to switch
among all three options (iOS, Android, and generic mobile), plus maybe
even non-mobile if applicable.
-Dave
--
Dave Aronson, the T. Rex of Codosaurus LLC,
secret-cleared freelance software developer
taking contracts in or near NoVa or remote.
See information at http://www.Codosaur.us/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit https://groups.google.com/groups/opt_out.