Ask A Question

Notifications

You’re not receiving notifications from this thread.

Using VueJS for Nested Forms in Rails: Part 1 Discussion

If I want to upload an image to the Team, how would it be? I'm trying to do it but I can not.
Reply
You think using both variable wordings underscore and camelcase is good? :)
Reply
Please break lines into the paragraph!
Reply

Hi Chris, great tutorial, first time commenter here!

I am curious why in removePlayer function, we needed this in this.team.players_attributes.splice(index, 1); but in addPlayer we did not need this while referring to

          team.players_attributes.push({
            id: null,
            name: "",
            // position: ""
            _destroy: null // keep in sync with other destroy methods
          })
Reply

Hi! But this work also with rails 6?
I have this error:

vue.runtime.esm.js:640 [Vue warn]: You are using the runtime-only build of Vue where the template compiler is not available. Either pre-compile the templates into render functions, or use the compiler-included build.

(found in )
warn @ vue.runtime.esm.js:640
mountComponent @ vue.runtime.esm.js:4022
./node_modules/vue/dist/vue.runtime.esm.js.Vue.$mount @ vue.runtime.esm.js:8402
Vue._init @ vue.runtime.esm.js:5017
Vue @ vue.runtime.esm.js:5092
(anonymous) @ hello_vue.js:26
./node_modules/turbolinks/dist/turbolinks.js.e.dispatch @ turbolinks.js:75
r.notifyApplicationAfterPageLoad @ turbolinks.js:994
r.pageLoaded @ turbolinks.js:948
(anonymous) @ turbolinks.js:872

Reply
Join the discussion
Create an account Log in

Want to stay up-to-date with Ruby on Rails?

Join 86,796+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.