Skip to content

Vanna doesn't work with MobileFu #5

@forsakenquantum

Description

@forsakenquantum

When using MobileFu, in a controller that inherits from VannaController instead of ApplicationController, mobile views don't show up when you navigate to the appropriate page with a mobile device, even though index.mobile.haml exists. What you get instead is a dump of the raw output of the index method of the controller for that page. The regular version (in index.html.haml) shows up just fine.

The instructions for MobileFu say to put the line "has_mobile_fu" in your application controller. If you put that line in the vanna controller instead, you get the error described above. If you copy and paste the contents of has_mobile_fu into the vanna controller, but delete the line "before_filter :set_request_format if set_request_format" then the mobile view works, but it shows the regular view. The set_request_format sets request.format to :mobile instead of :html, so that action is what seems to break the view.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions