Comments (8)
I need to dig into this, but I think it's a problem that only happens in development due to Rails' autoloading classes. cf. #16
from judge.
I will try in production, thank you.
from judge.
Thanks @joecorcoran, in production it is working very well.
I am using the master version
gem 'judge', git: 'git://github.com/joecorcoran/judge.git'
What version would you recommend to use?
from judge.
Use the latest version on Rubygems unless you are relying on a bug fix on master, in which case stick with the git option. I should release a new version soon.
from judge.
@ricardodovalle Did you solve this issue? I mean in development, not in production.
@joecorcoran the new version that you were mentioning in the last post (may 15), was released? and if it was released, it solve the problem in development mode too?
Thanks.
from judge.
Not sure about production env, but it sure is still broken in develpment mode, I have seen other issue for this closed. I am using 'master' commit e79cda4.
I think this is a 'Singleton' usage problem, look here:
def expose(klass, *attributes)
attrs = (@@exposed[klass] ||= [])
attrs.concat(attributes).uniq!
end
This is a workaround that works for me (in development):
before, fragile:
Judge.configure do
expose User, :username
end
after, solid:
Judge.config.exposed[User] = [:username]
from judge.
Same error here. Tried to change it as @rubyconvict suggested, but the error still occurs in development and production mode.
Edit: actually there was a typo in my params list. Seems to be ok now with @rubyconvict suggestion, but the duplicated field error message doesn't appear anymore.
from judge.
Glad I could help.
from judge.
Related Issues (20)
- Confirmation validation should be applied to the confirmation field HOT 3
- SimpleForm Radio Buttons Not Validate HOT 1
- `func.apply` in `_.once` is breaking my asynchronous validations HOT 3
- what's different with client_side_validations project? HOT 1
- Customize Error messages? HOT 9
- Reconsider bundled third-party JS HOT 1
- Email Validation HOT 2
- length validation does account for new lines
- Let's add some code docs
- regex and l18n problems HOT 4
- adding ransack form builder to judge
- Validate presence email always failing. Rails 5
- NameError while using Judge HOT 1
- ActiveModel::Errors#get is deprecated and will be removed in Rails 5.1 HOT 1
- update Rails/Ruby support HOT 1
- A little bug for the expose method.
- Please release a new version
- Update Form Validation Message
- Judge includes not added model's validations HOT 1
- Update Judge's CI HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from judge.