Git Product home page Git Product logo

Comments (7)

ljharb avatar ljharb commented on August 20, 2024

Hi @ZMaxim - take a look at 607908e on branch https://github.com/caolan/forms/tree/file_input - let me know if that will work for you.

from forms.

 avatar commented on August 20, 2024

Thanks 👍

from forms.

ljharb avatar ljharb commented on August 20, 2024

Not so fast - it's not in master, it's in a feature branch. Please let me know if it meets your expectations, and if it works well with data binding on the server side, before I merge it into master.

from forms.

 avatar commented on August 20, 2024

Well finally it doesn't work.

in dependencies I added :

 "forms": "https://nodeload.github.com/caolan/forms/legacy.tar.gz/file_input"

Is the correct way ?

Then in

image: fields.file(required: false)

says

    image: fields.file({
                  ^
TypeError: Object #<Object> has no method 'file'

from forms.

ljharb avatar ljharb commented on August 20, 2024

I'm not sure what nodeload does, but you should just be able to point at a git repo - namely, npm install https://github.com/caolan/forms/archive/file_input.tar.gz and test it out.

from forms.

 avatar commented on August 20, 2024

capture 2012-12-20 a 11 44 01
It adds a field, but not the right one.

from forms.

 avatar commented on August 20, 2024

Excuse me, but I stopped to work with node.js, to time consuming for the moment. So couldn't help you for the form thing. Switching back to ruby...

from forms.

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.