I misread what you posted - my mistake.  You also need to set the mime 
type, as you stated.

You might also want to do the following, which will make it simpler for 
you down the road where managing your views can be a bit tedious.

In application.rb set a config for:

paths.app.views << "app/views/mobile"

Then you can just keep your mobile views separate from other views.

i.e.

\views
\views\home
\views\layouts
\views\mobile
\views\users
etc.

and in \mobile you would have

\mobile
\mobile\home\index.mobile
\mobile\layouts\application.mobile
\mobile\users\index.mobile
etc.

If you want to see some testing scenarios for mobile rails look at this:

http://www.ruby-forum.com/topic/1744072

I wrote it a few days ago.  Glad you got it working.

-- 
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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en.

Reply via email to