开发者

How Rails pick a view template if it's Mobile and a AJAX call

I'm implementing Mobile Web on开发者_如何学JAVA my Rails App. So this is what I have in my folder:

index.html.erb
index.js.erb (for pagination)
index.mobile.erb
index.mobile.js.erb (?? this does not work)

So i'm doing AJAX paging as well for my mobile web. I keep getting Rails view template error:

ActionView::MissingTemplate (Missing template .../index with {:handlers=>[:builder, :rjs, :rhtml, :rxml, :erb], :locale=>[:id, :id], :formats=>[:mobile]} in view paths "/Users/.../app/views"):

Anyone done this before? Thanks :)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜