I was success to get data from external API in rails, In view, when I want create update form I just do like this but when I call it to _form.ht ...
I was success to get data from external API in rails, In view, when I want create update form I just do like this but when I call it to _form.ht ...
class CustomerType < ApplicationRecord belongs_to :workspace, inverse_of: :customer_type validates_presence_of :workspace end class Workspace ...
I added the method: patch to the form_with helper (like it said to in this SO post) and the <input type="hidden" name="_method" value="patch"> ...
I'm having an issue with collection_select using form_for in rails. This issue is coming from a method that was working until I namespaced my routes t ...
This one is driving me crazy... I have a form_for for which I want to update a campaign record. I'm getting the following error in logs when submitt ...
I have two view files that can log someone in. One is a new.html.erb file inside of users, and this makes an entirely new user and logs them in. On th ...
If a user has_many skills, and a skill belongs_to a user: how can a form be made that accepts the user and multiple skills? Here is a form with ...
So, I have a rails app that has a seed of all drama names/genre, and I'm doing a CRUD of reviews for them. For some reason, my create/new form works f ...
I am trying to add an "any" section to my game filters. In a wide view it works fine I just reload the page passing the link the other needed params l ...
Here is my models: end end class User < ApplicationRecord has_many :reviews has_many :dramas, :through => :reviews validates :username, u ...
The answers to how do I use a default placeholder ... in a select_tag? show how to set a default value for the select field. For example: The p ...
Is there an easy way to customise the message that appears when the pattern: "([A-Za-z0-9\-\_]+)" argument is not satisfied and this message appears: ...
A pattern argument can be provided to a form field as described here Example (regex from here) When the regex is not adhered to, a message is disp ...
gives users/:id/tasks but I would need users/:slug/tasks as I am using: but if I use: I get: NoMethodError: undefined method 'jemelle_visits_p ...
I'm trying to create a form where a user can add tickets to their accounts. The tickets are tiered (bronze, silver, gold) and I'm having a bit of trou ...
I have a single page with 72 time slots each with a radio button beside it for available / unavailable. I want the physician to be able to select whe ...
I have a form with 4 nested levels that I'm using to dynamically add items, shipments, and calculate costs. I have the form set up to where I can add/ ...
I have two models and after submitting a form (and therefore calling before_validation :set_name), I want to update the Dog name to be the Owner na ...
I have two models, Dog and Owner, and I want their names to be the same, and would be redundant if I asked to fill out the fields twice (once for the ...
I am creating a blog and I am trying to create a dashboard where the user can select new in the side menu and it renders the create new article form o ...