2013-10-08 2 views
0

저는 루비 1.8.7과 레일 3.2.14를 사용하고 있습니다. formtastic을 사용하여 railscast video # 184를 따르고 있습니다. 그곳에서 남자는 script/generate formtastic_stylesheets을 사용합니다. 내가 ruby ​​3.2.14를 사용하고 있기 때문에 rails generate formtastic_stylesheets을 만들었지 만, 오류가 발생합니다 : Could not find generator formtastic_stylesheets. 누구든지 필요한 스타일 시트를 비계하는 올바른 방법을 알고 있습니까? 아니면 폼을 만드는 데있어 최신 튜토리얼 및/또는 보석이 있습니까?Formtastic Gem을 사용한 Formtastic Scaffolding 오류

감사합니다. Formtastic README에서 section about stylesheets에서

답변

0

:

Rails 3.1 introduces an asset pipeline that allows plugins like Formtastic to serve their own Stylesheets, Javascripts, etc without having to run generators that copy them across to the host application. Formtastic makes three stylesheets available as an Engine, you just need to require them in your global stylesheets.

# app/assets/stylesheets/application.css 
*= require formtastic 
*= require my_formtastic_changes` 

아마도 그건 당신이 찾고있는 무엇.

+0

고맙습니다! 그것이 내가 필요한 것입니다! :) – Bhetzie