-
-
Notifications
You must be signed in to change notification settings - Fork 590
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 `find_one_without_friendly_id' #485
Comments
I actually just stumbled across this same issue today. I am not trying to globalize the URI slug, but even just doing an:
explodes with something like:
I'm wondering if the issue should actually be reported to the Globalize team. Without looking at the code, but looking at the error message my gut tells me that something they are patching into ActiveRecord is clobbering find_one_without_friendly_id I did notice that there was the friendly_id-globalize gem (by @parndt) but that has a dev dependency of FriendlyID > 5.0 which doesn't do any good for the folks running Rails 3 (given that FriendlyID 5.0 is for Rails 4 and up). Thoughts? |
cc @shioyama |
Aak. Yes that is definitely a globalize issue. Could you post this to the globalize github issue page and reference this? We'll follow up there. |
I just realized I fixed this in 3.0.1, see globalize/globalize@862cfd4. Can you try updating? |
Hi Chris, I am definitely using 3.0.1
On Nov 19, 2013, at 4:36 PM, Chris Salzberg [email protected] wrote:
|
Hmm.. thanks, will investigate then. |
I've been looking at and trying to debug this a little bit more (causing me a lot of grief). For reference, my model is Group.
(sorry for all the comments - just trying to figure out how to get this working - and hoping I can be helpful in the process) |
Thanks for your investigation. I pretty much know what the issue is. The problem is that I originally read the FriendlyId comments here and misunderstood the intention of the pattern that @norman setup. I just need to change how globalize overrides The first step will be to cherry-pick globalize/globalize@32af839 from the globalize |
Thanks @shioyama - very much appreciated. |
Appreciated indeed, thanks everyone! |
@humandoing @flexid Can you try the branch that I just created? gem 'globalize', github: 'globalize/globalize', branch: 'issue_306_friendly_id_relation_conflict' |
@shioyama At first sight this is working fluently dude. Thank you so much for the quick response! |
@flexid Thanks for checking. I've merged this into globalize 3-0-stable and if there are no issues will release as v3.0.2 in the next few days. |
Heya @shioyama - took me a little longer but I've pulled the branch and tested my use case above and everything seems to be working. Thanks very much! |
Closing this in favor of the issue over at Globalize. |
First of all, thank you for this awesome gem! I'm very much stuck on this thing now:
With globalize 3.0.0 and friendly_id 4.0.10 in Rails 3.2 (using :globalize and :history together) I get the following error when I want to show a translated object:
Also, it's not querying any translation tables! It looks for the translated slug in the default table.
Here's the full trace: http://dpaste.com/1464015/
And oh, I define my translations and slugs like this:
If I do it like this:
I get a stack level too deep SystemStackError...
Thanks.
PS. Nothing on StackOverflow...
The text was updated successfully, but these errors were encountered: