ActiveAdmin 컨νΈλ‘€λ¬μμλ :error
νλμ λ©μμ§κ° νμλμ§ μμ΅λλ€.
μ΄λ κ² νλ©΄ λ€μκ³Ό κ°μ νλμ λ©μμ§κ° νμλ©λλ€.
redirect_to admin_phone_path(@phone), notice: 'A nice message - this one is visible.'
κ·Έλ¬λ μ€λ₯λ₯Ό νμνλ €κ³ ν λ μ무 κ²λ νμλμ§ μμ΅λλ€.
redirect_to admin_phone_path(@phone), error: 'A less nice error message - this one is NOT visible.'
ActiveAdminμ΄ μμ±ν 컨νΈλ‘€λ¬μ κΈ°λ³Έ CRUD μμ
μμλ λμΌν λμμ΄ λνλ©λλ€.
μ¦, κ°μ²΄λ₯Ό μ
λ°μ΄νΈνλ €κ³ ν λ μμ
μ΄ μλνμ§ μμκ³ μ ν¨μ± κ²μ¬κ° μ€ν¨νμ¬ μ μ₯μ΄ λ°©μ§λμμμ μ μ μμ΅λλ€.
μ€λ₯λ redirect_toμ λν μ ν¨ν μ΅μ
μ΄ μλλλ€. κ²½κ³ λ₯Ό μ¬μ©ν μ μμ΅λλ€.
λλ μ€μ λ‘ μ€λ₯κ° νμν κ²½μ° λ€μκ³Ό κ°μ΄ μ¬μ©νμμμ€.
redirect_to admin_phone_path(@phone), flash: {error: 'A less nice error message - this one is NOT visible.'}
@arthwoodκ° μ λ΅μ μ 곡νμ΅λλ€. :error
λ κΈ°λ³Έμ μΌλ‘ μ§μλλ νλμ λ©μμ§κ° μλμ§λ§ flash
ν΄μμ ν¨κ» μμμ ν€λ₯Ό μ λ¬ν μ μμ΅λλ€.
μ¬λ¬ μ€λ₯λ₯Ό νμνλ €λ©΄ μ΄λ»κ² ν΄μΌ ν©λκΉ?
κ°μ₯ μ μ©ν λκΈ
μ€λ₯λ redirect_toμ λν μ ν¨ν μ΅μ μ΄ μλλλ€. κ²½κ³ λ₯Ό μ¬μ©ν μ μμ΅λλ€.
λλ μ€μ λ‘ μ€λ₯κ° νμν κ²½μ° λ€μκ³Ό κ°μ΄ μ¬μ©νμμμ€.