Skip to content

Commit

Permalink
Merge pull request benlangfeld#35 from jvanbaarsen/readme-add
Browse files Browse the repository at this point in the history
Added a part in the README about excluding mimetypes
  • Loading branch information
benlangfeld committed Jun 3, 2013
2 parents 32821b9 + bc8cfa8 commit e5c91ed
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ session[:tablet_view] # => Set to true if request format is :tablet and false
if set to :html
```

If you want to use the default response templates, like index.html.erb, instead of the index.tablet.erb you can
exclude the tablet rendering from beeing used:
you can create a `before_filter` and put it before the has_mobile_fu call

```ruby
before_filter :force_tablet_html
has_mobile_fu

def force_tablet_html
session[:tablet_view] = false
end
```

Same will work for mobile, just change the `tablet` values to `mobile`

So, different devices need different styling. Don't worry, we've got this
baked in to Mobile Fu.

Expand Down

0 comments on commit e5c91ed

Please sign in to comment.