Error compiling with Spockets #648

Closed
OyoKooN opened this Issue Aug 8, 2011 · 6 comments

Comments

Projects
None yet
3 participants
@OyoKooN

OyoKooN commented Aug 8, 2011

Hello,

I'm running Rails 3.1.0.rc5 and Formtastic 2.0.0.rc3.

When I try to access my controllers, I get the following error:

Error compiling CSS asset
NoMethodError: undefined method `process_formtastic_directive' for #<Sprockets::DirectiveProcessor:0x007fa9a5b341a0> (in  Users/OyoKooN/Projects/sxntuts/app/assets/stylesheets/application.css:6)
    /Users/OyoKooN/.rvm/gems/ruby-1.9.2-p290@webdev/gems/sprockets-2.0.0.beta.12/lib/sprockets/directive_processor.rb:191:in `block in process_directives'

The content of my application.css file:

*= require_self
*= formtastic
*= formtastic_ie7
*= require_tree .

If you need more info, tell me.

@justinfrench

This comment has been minimized.

Show comment Hide comment
@justinfrench

justinfrench Aug 9, 2011

Owner

I'm not going to be able to look at this for a few days. Any chance you can try to narrow it down? Is it an issue on 3.1.0.rc4 as well? Is it an issue with Formtastic master as well as rc3?

Owner

justinfrench commented Aug 9, 2011

I'm not going to be able to look at this for a few days. Any chance you can try to narrow it down? Is it an issue on 3.1.0.rc4 as well? Is it an issue with Formtastic master as well as rc3?

@OyoKooN

This comment has been minimized.

Show comment Hide comment
@OyoKooN

OyoKooN Aug 9, 2011

I'll perform a few tests and tell you more.

OyoKooN commented Aug 9, 2011

I'll perform a few tests and tell you more.

@OyoKooN

This comment has been minimized.

Show comment Hide comment
@OyoKooN

OyoKooN Aug 9, 2011

I got the same error with Formtastic 1.2.4 and Rails 3.1.0.rc5.
I can't test with Rails 3.1.0.rc4 because the Sprockets version which comes with it brokes the asset pipeline.

OyoKooN commented Aug 9, 2011

I got the same error with Formtastic 1.2.4 and Rails 3.1.0.rc5.
I can't test with Rails 3.1.0.rc4 because the Sprockets version which comes with it brokes the asset pipeline.

@mjonuschat

This comment has been minimized.

Show comment Hide comment
@mjonuschat

mjonuschat Aug 9, 2011

Collaborator

That sounds as if you have forgotten a "require" in your application.css and sprockets tries to find a preprocessor that provides a "formtastic" directive.

Morton

Am 09.08.2011 um 00:06 schrieb OyoKooNreply@reply.github.com:

Hello,

I'm running Rails 3.1.0.rc5.

When I try to access my controllers, I get the following error:

Error compiling CSS asset
NoMethodError: undefined method process_formtastic_directive' for #<Sprockets::DirectiveProcessor:0x007fa9a5b341a0> (in Users/OyoKooN/Projects/sxntuts/app/assets/stylesheets/application.css:6) /Users/OyoKooN/.rvm/gems/ruby-1.9.2-p290@webdev/gems/sprockets-2.0.0.beta.12/lib/sprockets/directive_processor.rb:191:inblock in process_directives'

If you need more info, tell me.

Reply to this email directly or view it on GitHub:
#648

Collaborator

mjonuschat commented Aug 9, 2011

That sounds as if you have forgotten a "require" in your application.css and sprockets tries to find a preprocessor that provides a "formtastic" directive.

Morton

Am 09.08.2011 um 00:06 schrieb OyoKooNreply@reply.github.com:

Hello,

I'm running Rails 3.1.0.rc5.

When I try to access my controllers, I get the following error:

Error compiling CSS asset
NoMethodError: undefined method process_formtastic_directive' for #<Sprockets::DirectiveProcessor:0x007fa9a5b341a0> (in Users/OyoKooN/Projects/sxntuts/app/assets/stylesheets/application.css:6) /Users/OyoKooN/.rvm/gems/ruby-1.9.2-p290@webdev/gems/sprockets-2.0.0.beta.12/lib/sprockets/directive_processor.rb:191:inblock in process_directives'

If you need more info, tell me.

Reply to this email directly or view it on GitHub:
#648

@mjonuschat

This comment has been minimized.

Show comment Hide comment
@mjonuschat

mjonuschat Aug 9, 2011

Collaborator

Ah, now that I got access to a webbrowser I see you posted your application.css. I am pretty sure my first idea is right, if you update your application.css to be like this:

*= require_self
*= require formtastic
*= require formtastic_ie7
*= require_tree .

it should work without problems

Collaborator

mjonuschat commented Aug 9, 2011

Ah, now that I got access to a webbrowser I see you posted your application.css. I am pretty sure my first idea is right, if you update your application.css to be like this:

*= require_self
*= require formtastic
*= require formtastic_ie7
*= require_tree .

it should work without problems

@OyoKooN

This comment has been minimized.

Show comment Hide comment
@OyoKooN

OyoKooN Aug 9, 2011

Indeed. Was my fault. Sorry for the loss of time.

OyoKooN commented Aug 9, 2011

Indeed. Was my fault. Sorry for the loss of time.

@OyoKooN OyoKooN closed this Aug 9, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment