Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stylesheet_tag default's media is "screen" #3724

Merged
merged 1 commit into from
Nov 22, 2011
Merged

stylesheet_tag default's media is "screen" #3724

merged 1 commit into from
Nov 22, 2011

Conversation

marcandre
Copy link
Contributor

I expect that any website I visit will, at worst, print exactly the way it looks on screen.

Rails doesn't default to that since

  1. stylesheet_tag's media default is set to "screen", and
  2. the generated default layout calls stylesheet_tag without a media option.

I would favor removing the default media type altogether, but I suspect that for compatibility reasons it will be judged that this can't be done.

So my patch changes (2) above by specifying :media => "all" in the default generated layout, and improves the documentation.

Thanks.

@wycats
Copy link
Member

wycats commented Nov 22, 2011

This looks good to me. @josevalim, thoughts?

@josevalim
Copy link
Contributor

Yes, please do merge.

wycats added a commit that referenced this pull request Nov 22, 2011
stylesheet_tag default's media is "screen"
@wycats wycats merged commit 9b7be78 into rails:master Nov 22, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants