Search Results for "form-using-form_with-not-loading-f173fe60-5f59-43e8-960e-2087895b7930"

Lessons





















Forum Threads

0 Using VueJS with Rails: Using VueJS for Nested Forms in Rails: Part 2

29
General
I particularly like avoiding the extra complexity of a full-blown router-based SPA, especially when enhancing an existing Rails app. Thanks for the clear and concise walkthrough! It'll help me avoi...
Aleksandr Shelestov replied

Render concurrent request data as it becomes available with Turbo Streams

1
Rails
Hi! I'm building a Rails app where users can check if a given username is available on multiple platforms. I have a form where users can enter a username, and then the app makes concurrent requests...
Una replied

Stripe Elements Javascript Discussion

15
General
Great tutorial! Seems that the new elements library is easy to use. I was wondering how would I go about implementing Stripe Elements in a e-commerce site with a React Front-End and a Rails API bac...
Shoaib Burq replied

How to use Devise with Hotwire & Turbo.js Discussion

81
General
Hey Chris - If we are still using Webpacker, we just need to change data-turbolinks-track to data-turbo-track in our layout files? In your episode repo, you still have it as turbolinks. <%= st...

Group Chat with ActionCable: Part 4 Discussion

69
General
As for message relay jobs matter for this particular subject of this ActionCable example, do you recommend putting down for its current_user's id or name in these kind of scenarios when it comes to...

Rails for Beginners Part 17: Login Form Discussion

8
General
It would be great to show how to do login with both username and email as well.

Global Autocomplete Search Discussion

29
General
Awesome episode Chris! Thanks!
Thomas Keller replied

Migrating from Rails UJS to Hotwire: Data Method, Confirm, and Disable With Discussion

18
General
Small comment about those delete links (I really dislike using links for delete requests): when you need to put a delete button inside form, consider moving the submit button outside of the form in...
Colin Ambler replied

Stripe Subscriptions: Duplicate Customers

14
Rails
Hey Eeveryone, I'm creating a subscription site using Stripe v3. For the most part everything is working fine, but I noticed in my Stripe Customer dashboard there are duplicate customers (for all ...
Stephen Swann replied
Solved

Forum Series Part 3: Nested Attributes and fields_for Discussion

29
General
What do you think about using ActiveForm? https://github.com/rails/ac...

Rails form post creates a 'Do you want to download “<form target>”' prompt on mobile

0
Rails
Hey everyone, I'm just testing my first Rails app on mobile and whenever I submit a form I get a prompt to download the form target. See the screenshot below: [Download Prompt on iPhone8](https:/...
TensAndTwenties posted

Issue with Nested Forms in Rails 6.1.3.2

2
Rails
I’m working on a project that will utilize nested forms that incorporates Rails 6.1.3 and Bootstrap 5.1.2. I’m having difficulty getting the nested form feature to work. Project GitHub: cjmccormic...
Steve Polito replied

Rails 6 form_with will not pass resources with Association

2
Rails
I am using Rails 6. I have a form that I need to pass `remote: true` so I get POST to process as JS: `LOG: MessagesController#create as JS` Here is what I have tried: `&lt;%= form_for [@hangou...
Jim Miller replied

How to process form_with using GET request as XHR

0
Rails
I'm working on a Rails 6 app, and want to update page view based on a dropdown value selected using XHR. Dropdown must use **GET** method coz I am calling **index** action. I am using form_with wh...
Maaz Siddiqui posted

Using VueJS for Nested Forms in Rails: Part 2 Discussion

8
General
Why did not you use "Vue.http.headers.common['X-CSRF-Token'] = document.querySelector('meta[name="csrf-token"]').getAttribute('content')" ?
Daniel Chapman replied

Hotwire Not Working Inside of Namespace

0
Rails
This seems like an easy fix, but I am not sure why its not working. I have an admin dashboard using Hotwire, but I can't seem to create records for my gym model (There are no errors, and it will wo...
Brian Gilbank posted

Accepts_nested_attributes_for, I am getting 'unpermitted parameter: :user' and User not entering to DB.

1
Rails
Hello! I am building an app with Accounts/Users &amp; Memberships via has_many through. I am using Devise and want to create a new user from 'accounts#new" via 'accepts_nested_attributes_for.' Whe...
Ryan Mindigo replied
Solved

Rails for Beginners Part 13: Creating a Sign Up Form Discussion

6
General
Plural/singular confuses me. I know Models are singular ("User"). Why "Registrations" (plural) for the controller? Does it matter for controllers which aren't directly associated with a Model? Look...
Eric Halverson replied

Validation Errors Not Showing in Views

1
Rails
I have an app where I got the CRUD functionality working and I added some AJAX to learn how to use it. I changed a class to use AJAX for the delete, edit and show views from the index view. That ...
Drew replied