I have a specialized dashboard for my Rails application that is shown to users using a media query. I'd like to have devise redirect users on mobile devices (through media queries) to that specific dashboard upon sign in.
What's a good way to get this done, while attempting to avoid having rails actually detect anything? I've looked into gems like browser
a bit, but I'd like something a little more comprehensive and customizable, such as a media query.
Any suggestions of places to start looking, or what kind of code I could put in my View / JS / CSS to make this happen?
I'd highly prefer to fire off a specific controller action for specific media queries, but I feel like that may be an unachievable dream.