client_side_validations icon indicating copy to clipboard operation
client_side_validations copied to clipboard

Missing translations with current Mongoid

Open MSchmidt opened this issue 14 years ago • 9 comments

Since Mongoid 2.3 or 2.4, I'm seeing messages like translation missing: en.mongoid.errors.models.user.attributes.full_name.presence instead of can't be blank etc. At first I thought it's a Mongoid issue but with client_side_validations disabled the correct messages are shown.

MSchmidt avatar Jan 17 '12 11:01 MSchmidt

Fantastic

bcardarella avatar Jan 17 '12 16:01 bcardarella

I'm experiencing this too.

kellerapps avatar Jan 19 '12 23:01 kellerapps

I've set aside some time to tackle a 3.2 release this weekend. This will break out the mongoid functionality in the client_side_validations-mongoid gem. This will allow be better maintenance and faster updates when stuff like this happens.

bcardarella avatar Jan 20 '12 08:01 bcardarella

Thx for the update. If you think I can help, I'm willing.

May I have your email address? -Ken

On Fri, Jan 20, 2012 at 12:07 AM, Brian Cardarella < [email protected]

wrote:

I've set aside some time to tackle a 3.2 release this weekend. This will break out the mongoid functionality in the client_side_validations-mongoid gem. This will allow be better maintenance and faster updates when stuff like this happens.


Reply to this email directly or view it on GitHub:

https://github.com/bcardarella/client_side_validations/issues/253#issuecomment-3580328

kellerapps avatar Jan 20 '12 17:01 kellerapps

This is now fixed in the beta version of client_side_validations-mongoid

https://github.com/dockyard/client_side_validations-mongoid

bcardarella avatar Jan 22 '12 11:01 bcardarella

gem "client_side_validations-mongoid", :git => " https://github.com/dockyard/client_side_validations-mongoid.git"

ActionView::Template::Error (couldn't find file 'rails.validations'

I did not re-run

rails g client_side_validations:install

Is this necessary?

On Sun, Jan 22, 2012 at 3:47 AM, Brian Cardarella < [email protected]

wrote:

This is now fixed in the beta version of client_side_validations-mongoid

https://github.com/dockyard/client_side_validations-mongoid


Reply to this email directly or view it on GitHub:

https://github.com/bcardarella/client_side_validations/issues/253#issuecomment-3602481

kellerapps avatar Jan 22 '12 17:01 kellerapps

Nevermind--I see I need to retain: gem client_side_validations

On Sun, Jan 22, 2012 at 9:12 AM, ken keller [email protected] wrote:

gem "client_side_validations-mongoid", :git => " https://github.com/dockyard/client_side_validations-mongoid.git"

ActionView::Template::Error (couldn't find file 'rails.validations'

I did not re-run

rails g client_side_validations:install

Is this necessary?

On Sun, Jan 22, 2012 at 3:47 AM, Brian Cardarella < [email protected]

wrote:

This is now fixed in the beta version of client_side_validations-mongoid

https://github.com/dockyard/client_side_validations-mongoid


Reply to this email directly or view it on GitHub:

https://github.com/bcardarella/client_side_validations/issues/253#issuecomment-3602481

kellerapps avatar Jan 22 '12 17:01 kellerapps

Currently the Mongoid plugin requires the beta of version 3.2.0. Use the following in your Gemfile

gem 'mongoid`
gem 'client_side_validations', '~> 3.2.0.beta.1'
gem 'client_side_validations-mongoid', '~> 2.4.0.beta.2'

This only supports Rails 3.1 and greater.

bcardarella avatar Jan 22 '12 17:01 bcardarella

Works!

BTW, my background is at www.kellerapps.com I'm looking for a great Rails engr to join me in my new startup. -Ken

On Sun, Jan 22, 2012 at 9:16 AM, Brian Cardarella < [email protected]

wrote:

gem 'client_side_validations', '~> 3.2.0.beta.1' gem 'client_side_validations-mongoid', '~> 2.4.0.beta.2'

kellerapps avatar Jan 22 '12 17:01 kellerapps