Skip to content

Instantly share code, notes, and snippets.

@alexishida
Last active January 31, 2025 02:13
Show Gist options
  • Save alexishida/601bccc5fc2bb686543c5d706fb06986 to your computer and use it in GitHub Desktop.
Save alexishida/601bccc5fc2bb686543c5d706fb06986 to your computer and use it in GitHub Desktop.
# Config pra cache do hotwire html em desenv
config.cache_classes = false
config.enable_reloading = true
config.eager_load = false
# Prropshaft
npm install imask
./bin/importmap pin imask
# Message flahs on rails 8
def create
@user = User.new(user_params)
if @user.save
# flash.now.notice = "Salvo com sucesso."
redirect_to root_path, notice: “User created successfully“
else
render :new, status: :unprocessable_entity
end
end
https://dev.to/mtoni/viewcomponent-hotwire-tailwind-with-propshaft-and-importmap-in-rails-72-4mhf
# Authentication Generator
https://www.bigbinary.com/blog/rails-8-introduces-a-basic-authentication-generator
https://dev.to/jetthoughts/rails-8-introducing-the-built-in-authentication-generator-1l77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment