开发者

Can I use a redirect_to in a Rails controller with JQTouch?

开发者 https://www.devze.com 2023-01-16 03:31 出处:网络
I have a UserSessions controller whose create action issues a \"redirect_to dashboard_path\" for the mobile mime type. The form is being submitted with a link_to, which JQTouch turns into an ajax requ

I have a UserSessions controller whose create action issues a "redirect_to dashboard_path" for the mobile mime type. The form is being submitted with a link_to, which JQTouch turns into an ajax request. JQTouch ends up sliding in a completely blank page with the #undefined anchor appended to the URL. I've determined that what it's doing is display开发者_开发问答ing the create.mobile.erb template for my UserSessions controller. The UserSessions controller should be redirecting to DashboardController#show though.

A pastie of my code is here: http://pastie.org/1161858

Can anyone shed some light on what's going on here? I wish the JQTouch documentation wasn't so sparse.

Thanks in advance, Sam

0

精彩评论

暂无评论...
验证码 换一张
取 消