berk / tr8n

This repository has moved to:
https://github.com/tr8n/tr8n
MIT License
280 stars 37 forks source link

Rails 3.2 errors ? #35

Open antonioturdo opened 12 years ago

antonioturdo commented 12 years ago

I am trying to use Tr8n with rails 3.2.2. I have my own authentication system and enabled use of User model. I get two different errors:

These errors can be related to the use of rails 3.2.2? Any suggestions on how to solve?

berk commented 12 years ago

I am working on the solution for both of the issues you've mentioned. Those should be fixed soon.

iakona commented 12 years ago

I had the same problem, but I did find a fix to the first one.

In the gem file for tr8n, you want to go to the edit the file app/models/language_user.rb and change the line near the bottom that says lu.set_attr or something like that to lu.touch.

Another fix is in the file app/models/language_metric.rb there is a typo "total_ley_key" should be changed to key.

whitehat101 commented 11 years ago

These bugs are making my test use of tr8n less enjoyable. These bugs are present in my 3.2.7 app, and in the example demo app: https://github.com/tr8n/tr8n_rails_3.2.3 it wouldn't work for me.

At first look, master (973fb5277) seems to work with 3.2.7

silviorelli commented 11 years ago

I still have this error reported by @zeusi83 (on Rails 3.2.13), I'm trying to develop a fix but I'm unable to load the gem source for development.

Can you please help me, telling how to load the "extracted" gem for development?

I tried:

silviorelli commented 11 years ago

And... I can confirm what @whitehat101 said, 973fb52 works with latest Rails version

silviorelli commented 11 years ago

Okay I discovered that the released gem (3.2.3) is one year old. The "ActiveModel::MassAssignmentSecurity::Error in Tr8n::LanguageController#switch" error is fixed in the current source. I think you can close this issue.