-
Notifications
You must be signed in to change notification settings - Fork 223
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
Returns empty object #87
Comments
Hi @TheRPunkt, what is the result when you try the bang (!) version of the generate method? i.e. |
Hi, thanks for your help :) When trying out the method you pointed out, active records rollbacks the transaction and returns an empty shortened url object. When trying out object.errors.full_messages there is the message "Owner must exists". However I did not have setup the owner possibility you mentioned in the readme file... Do you have an idea? |
What version of Rails are you using? It might be because Rails5 has introduced an implicit |
I'm working with version 5.0 of rails and already saw the issues about it. Additionally, I already tried multiple branches which should be updated but did not work out. However, this one one is working just fine. Thanks for your help, could've found that myself. |
Hello everybody,
I'm new to this gem and wanted to build it into my app. So firstly, I started just by creating a shortened url. I tried the following:
Shortener::ShortenedUrl.generate("https://github.com/jpmcgrath/shortener")
However the first SQL Statement instantly rollbacks and I get a an empty object back:
Maybe someone can help me on that.. :/
The text was updated successfully, but these errors were encountered: