Sass: Syntax Error in Devise: Registrations#new ์†”๋ฃจ์…˜

1959 ๋‹จ์–ด RubyRails

์ „์ œ ์กฐ๊ฑด


ใƒปgemfile์— ์‚ฌ์šฉํ•  ํŒจํ‚ค์ง€๋ฅผ ์„ค๋ช…ํ•ฉ๋‹ˆ๋‹ค
Gemfile
 gem 'devise'
ยท ๋‹จ๋ง๊ธฐ ์™„์„ฑbundle install

์ž˜๋ชป๋œ ๋‚ด์šฉ


@import "module/user"๊ฐ€ ์ž˜ ๋๋‚ฌ๋‚˜ ๋ด์š”.user.scss๋ฅผ ์ฝ์ง€ ์•Š์€ ๊ฒƒ ๊ฐ™์Šต๋‹ˆ๋‹ค. _user.์‹œ์šด์ „scss ์—ฌ๊ธฐ์„œ๋ถ€ํ„ฐ. modules ๋””๋ ‰ํ† ๋ฆฌ์— ๋„ฃ์—ˆ์Šต๋‹ˆ๋‹ค. ์ž˜ ๋Œ์•„๊ฐ€๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ์—ฌ๊ธฐ์„œ ์ƒ๊ฐํ•˜๋Š” ๊ฑฐ. @import "module/user"๋ผ๊ณ  ์“ฐ์—ฌ ์žˆ์ง€๋งŒ ์ด๊ฑธ ์ž์„ธํžˆ ๋ณด๋ฉด... modules ๋””๋ ‰ํ† ๋ฆฌ์—์„œuser.scss๋ฅผ ์ฝ์œผ์‹ญ์‹œ์˜ค. @import )
๊ทธ๋ž˜์„œ
์‹œํ—˜ํ•ด ๋ณด๋‹ค
๋ณ€๊ฒฝ@import "user"_user.scss ํŒŒ์ผ ์œ„์น˜ ๋ณต๊ตฌ ํ›„
์ œ๋Œ€๋กœ ์›€์ง์˜€์–ด.

๊ธฐ์˜๊ณ  ์ถ•ํ•˜ํ•  ๋งŒํ•˜๋‹ค

์ข‹์€ ์›นํŽ˜์ด์ง€ ์ฆ๊ฒจ์ฐพ๊ธฐ