[Rails] Re: Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-19 Thread Momeas Interactive
I'm not suggesting any breaking changes at all. I've been using Rails since Rails version 2 so I don't know what you mean "like that from the beginning" In the beginning, DHH said things would "just work" and, as a community we would value convention over configuration. As far as using

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-19 Thread Momeas Interactive
ng a js view when you process the unsubscribe action? what > does you action do? what do you respond to the user from your server? you > have to tell rails what to do when you submit the form, how are you telling > rails what to do? > > El mar., 18 feb. 2020 a las 14:46, Momeas In

[Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-16 Thread Momeas Interactive
it says here in the docs that for turobolinks that you now have to BIND ALL YOUR AJAX EVENTS (!?!?) if you want your forms to submit correctly. https://guides.rubyonrails.org/working_with_javascript_in_rails.html#remote-elements "You probably don't want to just sit there with a filled out ,

Re: [Rails] redirect shown in log, but browser not redirecting

2020-02-18 Thread Momeas Interactive
Nicholas, With all due respect, if you "wrote the docs on form_with," I would refer you to my previous thread in which I am complaining about Turbolinks being default (I think it shouldn't be). You will also note that the only place local: true appears on the form_with documentation is in a

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Momeas Interactive
Juodziukynas wrote: > > It doesn't say you that you HAVE to bind all the ajax events. It > explicitly says that you "probably" want to do that if you "probably" want > to do something other than just submitting the form. > > El dom., 16 feb. 2020 a

Re: [Rails] Why do basic forms not work in Rails 6 without binding events to each form?

2020-02-18 Thread Momeas Interactive
gt;>> maybe you have some other js messing up rails' ajax handers. >>> >>> El mar., 18 feb. 2020 a las 14:22, Momeas Interactive (< >>> te...@datatravels.com >) escribió: >>> >>>> Incorrect. You HAVE to bind your Ajax events, or else there is

Re: [Rails] //= require stylesheet with webpacker

2020-02-18 Thread Momeas Interactive
Fugee- when you switch from css to scss, you need to rename application.css to application.scss and do the following: *stop using //= require* instead use @import always and from now on when using scss. Do not use *//= require *syntax anymore this is explained in the "IMPORTANT NOTE" at the

[Rails] Re: Setting model association `source_type` to polymorphic object

2020-02-18 Thread Momeas Interactive
I don't think polymorphism in Rails can work that way did you try `has_many :users_following, through: :active_relationships, source: :followable, source_type: "FollowableUser"` `has_many :projects_following, through: :active_relationships, source: :followable, source_type: