Monday, 15 March 2010

ruby on rails - Error='ActiveRecord::RecordNotFound:Couldn't find Game with 'id'=worker-javascript' -



ruby on rails - Error='ActiveRecord::RecordNotFound:Couldn't find Game with 'id'=worker-javascript' -

i'm running error when app running in production...

method=get path=/games/worker-javascript.js format=js controller=games action=show status=500 error='activerecord::recordnotfound:couldn't find game 'id'=worker-javascript'

the worker-javascript shown in error javascript file in 1 of 3rd part library directories in vendor directory. game 1 of models. since 1 of big differences between development environment , production environment compiled assets, i'm guessing has way i'm precompiling assets, i'm new rails see wrong. here's manifest file i'm using page that's throwing error...

//= require jquery //= require jquery_ujs //= require browser_details //= require turbolinks //= require ace

the worker-javascript.js file file in /vendor/assets/javascripts/ace/ directory, i'm including //= require ace.

any ideas why happening? in advance wisdom!

you should link file using

//= require ace/worker-javascript

reference: http://guides.rubyonrails.org/asset_pipeline.html#asset-organization

edit: cannot include whole folder ace line wrote, need on these lines rails include javascripts assets folder recursively

ps: trying include js somewhere else too? using inline javascript_include_tag worker-javascript or something?

ruby-on-rails activerecord ruby-on-rails-4 asset-pipeline

No comments:

Post a Comment