开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜