All threads / Using VueJS for Nested Forms in Rails: Part 1 Discussion

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

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

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

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

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.