-
-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
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
Incompatible with Rails 8 #199
Comments
Could you share exact error messages here? To be honest, I've just started a fresh Rails 8 application with slim-rails and I didn't see any issues with most basic setup and views: > rails g scaffold Post title body
invoke active_record
create db/migrate/20241116170917_create_posts.rb
create app/models/post.rb
invoke resource_route
route resources :posts
invoke scaffold_controller
create app/controllers/posts_controller.rb
invoke slim
create app/views/posts
create app/views/posts/index.html.slim
create app/views/posts/edit.html.slim
create app/views/posts/show.html.slim
create app/views/posts/new.html.slim
create app/views/posts/_form.html.slim
create app/views/posts/_post.html.slim
invoke resource_route
invoke helper
create app/helpers/posts_helper.rb
❯ bin/rails db:migrate
== 20241116170917 CreatePosts: migrating ======================================
-- create_table(:posts)
-> 0.0010s
== 20241116170917 CreatePosts: migrated (0.0010s) =============================
> bin/dev
# GET localhost:3000/posts
Started GET "/posts" for ::1 at 2024-11-16
Processing by PostsController#index as HTML
Rendering layout layouts/application.html.erb
Rendering posts/index.html.slim within layouts/application
Post Load (1.1ms) SELECT "posts".* FROM "posts" /*action='index',application='New8',controller='posts'*/
↳ app/views/posts/index.html.slim:6
Rendered posts/index.html.slim within layouts/application (Duration: 11.4ms | GC: 1.0ms)
Rendered layout layouts/application.html.erb (Duration: 12.2ms | GC: 1.0ms) |
The current version of Other than the authentication generator, the features seem to be working fine with Rails 8.0. @unRARed The error mentioned in the comment (#199 (comment)) below seems to be a syntax error with I believe the error can be fixed by making the following adjustment: - = button_to("Log out", session_path,
+ = button_to(session_path,
method: :delete,
data: { turbo_methid: :delete },
class: 'test-blue-500' \
- )
+ ) do
span Log out |
I also created a PR to support the authentication generator. |
Thanks to @taketo1113 , I've just released new gem version with support for authentication generator. |
Rails 8 has dropped support for Sprockets in favor of Propshaft, leading to a multitude of app breaking errors when trying to use this gem.
The text was updated successfully, but these errors were encountered: