Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6814515
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:41:53+00:00 2026-05-26T20:41:53+00:00

This post has been ‘somewhat’ addressed (see links at bottom of post) but not

  • 0

This post has been ‘somewhat’ addressed (see links at bottom of post) but not to it’s full extent.

I am working on building a mobile site in Rails 2.3 (I know, I’m going to migrate to Rails 3 soon). Either way, as I continue developing this mobile site (and I am using Mobile Fu – works great), I’d like to understand best practices around configuring and managing the mobile site:

  1. Where should I redirect to the mobile domain (in application controller)? What is the best logic for doing this?
  2. Should I build the .mobile.erb files in the same folder as the .html.erb files? Or in a separate mobile folder?
  3. What kind of routes/controller/etc logic do I need for my mobile site (if I decide to not embed the mobile rendering inside my current application structure, but instead have a separate controller and mobile view folder)?

I appreciate it.

Other links:
Web and Mobile views best practices same controller or namespace?
http://www.arctickiwi.com/blog/mobile-enable-your-ruby-on-rails-site-for-small-screens

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:41:53+00:00Added an answer on May 26, 2026 at 8:41 pm

    Rather than answer your question directly, I am going to suggest that best practices have moved on somewhat.

    Concepts like Mobile First, Adaptive Design, Responsive Design, and Progressive Enhancement are replacing the split site approach as best-practice.

    These concepts revolve around building out your site for mobile first (so you can work out what the most important things are) and then extending the design for screens that are larger.

    It removes the need to determine if it is a ‘mobile’ accessing the site and instead relies on various techniques (adapt.js or CSS media queries) to target different layouts to the variou screen sizes. It also means you do not have to maintain multiple views and routing – you have one view and change the CSS.

    When you move to Rails 3.1 (with the pipeline) this allows the creation of CSS (and JS) manifests, and you can (potentially) have one manifest for each screen size.

    There are issues with the above approach (just as there are with split sites), but if you Google the key terms above you’ll find tons of advice. Best of luck either way!

    Edit: Here are some links I found useful.

    http://www.lukew.com/ff/entry.asp?933

    http://www.netmagazine.com/features/mobile-first

    http://www.alistapart.com/articles/responsive-web-design/

    http://coding.smashingmagazine.com/2011/01/12/guidelines-for-responsive-web-design/

    http://www.alistapart.com/articles/taking-advantage-of-html5-and-css3-with-modernizr/

    http://www.sitepoint.com/regressive-enhancement-with-modernizr-and-yepnope/

    There are some that think that this is bad though:

    http://nefariousdesigns.co.uk/archive/2011/05/sniff-my-browser-the-modernizr-inadequacy/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

(Note: This post has been edited to show specific use case. See bottom.) I
The same question has been asked in this post , but the accepted answer
This post has NOT been accepted by the mailing list yet. I want to
(This post has been submitted on the Yootheme forums but I don't have as
I know this has been asked before @ this post , but I am
I understand this has been discussed before but since this post in late 2010
This is my first post. I know this topic has been discussed before in
This topic has been covered in one form or another but none of the
this post has been edited to reflect the findings thus far between myself and
This post has been heavily edited and updated! The Intent: I am writing an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.