We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey,
I created my projects running rails new my-todo-app --main --css=tailwind and I created a scaffold model rails g scaffold Task title:string description:text completed:boolean due_date:datetime it created a form but checkbox looks weird even this line https://github.com/rails/tailwindcss-rails/blob/main/lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt#L31
rails new my-todo-app --main --css=tailwind
rails g scaffold Task title:string description:text completed:boolean due_date:datetime
it generated this code line in _form.html.erb
_form.html.erb
<div class="my-5"> <%= form.label :completed %> <%= form.checkbox :completed, class: "block shadow rounded-md border border-gray-400 outline-none px-3 py-2 mt-2 w-full" %> </div>
I was expecting it wouldn't be cover all width, but it did.
What should I do?
The text was updated successfully, but these errors were encountered:
I see the problem :) The form is generating checkedbox but here https://github.com/rails/tailwindcss-rails/blob/main/lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt#L31 it's check_box I can fix it
checkedbox
check_box
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Hey,
I created my projects running
rails new my-todo-app --main --css=tailwind
and I created a scaffold modelrails g scaffold Task title:string description:text completed:boolean due_date:datetime
it created a form but checkbox looks weird even this line https://github.com/rails/tailwindcss-rails/blob/main/lib/generators/tailwindcss/scaffold/templates/_form.html.erb.tt#L31it generated this code line in
_form.html.erb
I was expecting it wouldn't be cover all width, but it did.
What should I do?
The text was updated successfully, but these errors were encountered: