Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

will_paginate helpers and edge rails #12

Closed
masterkain opened this Issue · 6 comments

2 participants

@masterkain

hi,
Rails changed default html rendering to "safe mode" by default, escaping html chars, etc.

Result:

Displaying Records <b>1&nbsp;-&nbsp;30</b> of <b>414</b> in tot...

@masterkain

using <%=raw seems to fix the issue, you may want to add that to the docs

@masterkain

problem still exists for the default laquo; and raquo; when linked.

@mislav
Owner

Thanks for reporting.

Can't I somehow mark these strings as "untainted", so I don't have to explicitly use raw?

@masterkain

I'm not sure since I haven't dug the new rails code extensively, but I see this in
http://github.com/rails/rails/commit/9415935902f120a9bac0bfce7129725a0db38ed3#L3R18

my best guess is that you can declare that the output is .html_safe!

@mislav
Owner

fixed in the "rails3" branch

I don't know when will it be merged back into "agnostic", or even "master", but until then you can simply use the aforementioned branch without worries

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.