-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
#to_s on models not working reliably #329
Comments
@nextekcarl, we changed up the rendering behavior in #191 - that change went out in version You can fix the behavior by adding this to your def display_resource(product)
product.to_s
end As for the "Show Shampoo" button that is using If that solves your problem, feel free to close the issue. Cheers! |
Thanks, though I'm already updated to 0.1.2 in that screenshot, so I think that button code must still be using the old code. I had just updated Administrate to 0.1.2 about 20 mins before posting that screenshot. |
Interesting. @nextekcarl, do you have |
D'Oh! That was it, thanks. |
I've updated to 1.2.0 and to_s doesn't seem to be reliably working to display titles/names for models:
There was talking about changing this in another issue, but I don't see anything saying the method changed, and I can't find anything documented anywhere, plus it is still working in at least one area shown.
The text was updated successfully, but these errors were encountered: