-
Notifications
You must be signed in to change notification settings - Fork 72
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
undefined method `html_safe' #68
Comments
Rails SafeBuffer support issue :-). I will fix it, when return to home, after few hours and release 1.0.1. |
Can you show my full error trace? I need to understand, where is is localed. |
Try to fix tests in 4d8e829, but didn’t find tyhis issue. All usage of So, I need full error trace and another libraries from Gemfile (maybe SafeBuffer is loaded, but did’t included to String?). |
in login.erb:7 I have:
To reproduce this bug You can clone rubycas-server (https://github.com/rubycas/rubycas-server) and run rspec |
Can you try latest commit from git 182ad07 to fix this issue? Just add: gem `r18n-core`, :git => 'git://github.com/ai/r18n.git' And run |
it seems that latest commit solve this issue but I've got other problems the content is somehow damage. |
Can you show me screenshotor any example? |
I compare output and for example: with 1.0.0
with 0.4.14
|
Can you show me Also, can I run you application without install in system to reproduce this error? |
To reproduce just do: |
OK, try to repeat tomorrow. |
give me know when You will upload something to repo because as I checked right now there is no any changes yet. |
OK, I find problem place. There are some strange magic with modules, Sinatra and loading order, so sinatra-r18n take wrong Fix is very easy, just replace: set :translations, File.dirname(__FILE__) + "/../../locales" to: R18n.default_places { File.dirname(__FILE__) + "/../../locales" } to use global R18n places method, instead of method from Sinatra plugin. |
Fix README.md and prefer R18n global settings for SInatra plugin: 5b24dd2 |
I wait for you if git version will fix all issues for you and then release version 1.0.1. |
@ai what to do when I don't override any :translations setting? Is it covered by your patch? |
@akzhan yes, patch may help (if problem was in some strange loading order, when R18n plugin get wrong app root path), but I am sorry, I didn’t know exactly. |
Thanks a lot it works right now. |
Hi,
After upgrade r18n from 0.4.14 to 1.0.0 I've got this error:
I use r18n with sinatra
gem list:
The text was updated successfully, but these errors were encountered: