GithubHelp home page GithubHelp logo

Rails3 Support about validates_timeliness HOT 15 CLOSED

adzap avatar adzap commented on August 16, 2024
Rails3 Support

from validates_timeliness.

Comments (15)

adzap avatar adzap commented on August 16, 2024

That it would. Its on my radar. Can't promise when, but soon as I can.

from validates_timeliness.

spovich avatar spovich commented on August 16, 2024

Yea, I would like to see this too!

Just for grins, I tried it and it kept blowing up on my seeds with
undefined method `generated_methods?' for #Class:0x108185980

from validates_timeliness.

sr3d avatar sr3d commented on August 16, 2024

Hi Adzap, any update on Rails 3 support? With Rails 3b4, I got the same error with generated_methods? not defined.

from validates_timeliness.

adzap avatar adzap commented on August 16, 2024

I should be able to get to it within the next week. I am working on a Rails 3 project now and it makes it much easier and motivating than trying to do it in isolation.

from validates_timeliness.

huerlisi avatar huerlisi commented on August 16, 2024

I've started quick'n'dirty porting, but have to admit that I'm no plugin specialist;-)

Check out the rails3 branch at http://github.com/huerlisi/validates_timeliness

What I've done:

  • Implement Railtie to get loaded as plugin
  • Update spec_helper to rails 3 and rspec 2
  • Updated some deprecated API calls

I'm now down to 19 failing specs. A quick look into those showed, that it won't be easy for me to fix them;-)

I hope this branch helps you by concentrating on the actual validation failures.

Thx for this great plugin, btw!

from validates_timeliness.

adzap avatar adzap commented on August 16, 2024

Thanks for the commits. But I am likely to rewrite the plugin for Rails 3. There are design aspects I am not happy with and it's perfect to time to fix them.

from validates_timeliness.

supertaz avatar supertaz commented on August 16, 2024

Out of curiousity, when do you think you'll do this proposed rewrite?

from validates_timeliness.

adzap avatar adzap commented on August 16, 2024

Working on it now. Should be able to push something this week.

from validates_timeliness.

supertaz avatar supertaz commented on August 16, 2024

That would be very cool :) Right now the rails 3 branch of the app I was using it in has some important validations commented out...I'd love to get them back in! ;)

from validates_timeliness.

adzap avatar adzap commented on August 16, 2024

I have an active rails3 branch if you want to follow the progress. It is not production ready as it is missing a few features. It does not have the plugin formats facility yet, nor the rigorous handling of invalid values. Use with high caution if you must.

It can't currently distinguish between an invalid parsed value where the attribute value is nil, and a plain nil value. The difference being what is stored as the before_type_cast value which it currently does not support.

from validates_timeliness.

adzap avatar adzap commented on August 16, 2024

If anyone is game you can give the rails3 branch a try. There are few changes in the API and the custom parser is not yet in. Custom error messages must be put in the locale files also.

Let me know if you get any problems.

from validates_timeliness.

huerlisi avatar huerlisi commented on August 16, 2024

Cool, will take a look in the next few days!

from validates_timeliness.

huerlisi avatar huerlisi commented on August 16, 2024

Currently testing the rails3 branch. It mostly works, but bears some surprises has some rough edges;-) Good work, anyway!

Shall I file separate issues for each finding, or do you like me to add 'em here as comments?

Will try to add Railtie/Gem support if you're interested.

from validates_timeliness.

adzap avatar adzap commented on August 16, 2024

Please add them as separate issues. I can never remember is users can tag issues or not. If so then tag rails 3. Otherwise I will later.

I will look into the Railtie stuff, thanks anyway. Gem I am keeping until a pre release.

from validates_timeliness.

adzap avatar adzap commented on August 16, 2024

I have released a gem beta version. Check the master branch readme for info. Need to add more info to the upgrade page. Feel free to edit it.

Wiki also explains how to add support to other ORMs.

Add new issues if you find bugs. Closing this one.

Thanks

from validates_timeliness.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.