Rails 3.1.0 rc 4 - Segfaults
Can you help with that?
https://gist.github.com/1040635
GemFile, default plus:
ge开发者_JAVA百科m 'therubyracer' gem 'devise' gem 'kaminari' gem 'simple_form'
The log speaks for itself.
These lines from your stack trace make me think you are validating the uniqueness of something in your Posts model:
METHOD /Users/eduardo/.rvm/gems/ruby-1.9.2-p180@rails31rc4/gems/activemodel-3.1.0.rc4/lib/active_model/validations/with.rb:81
METHOD /Users/eduardo/.rvm/gems/ruby-1.9.2-p180@rails31rc4/gems/activerecord-3.1.0.rc4/lib/active_record/validations/uniqueness.rb:176
CLASS /Users/eduardo/Intermeta/smsy/app/models/post.rb:3
TOP /Users/eduardo/Intermeta/smsy/app/models/post.rb:1
Can you post your Post model class?
Thanks to Aaron:
@tenderlove: @eduardordm likely this is the problem (make sure to click the "workaround" link for a fix)
Thing is, therubyracer (pre 0.9.1) is not thread safe.
Solution:
gem 'therubyracer', "~> 0.9.1"
精彩评论