Datatables not showing in production mode after running rake assets:precompile. rails 3.2 -


When I run my application in development in my table, show that when I run my app in the production datatable , So do not see it. Only records are shown.

Screenshots in the development:

shown dataset

Screenshots in Production:

DataTable disappearance

My production.rb:

  Contractbeheerpj :: Application.configure # setting will be preferred to those in the specified config / application.rb # code request is not being reloaded between the config. Cache_classes = true # Full error reports are disabled and caching config.consider_all_requests_local = false config.action_controller.perform_caching is turned on = true # Fixed property of disabled rail, server (apache or nginx will already be this work) config.serve_static_assets = false # compression javascript and css config.assets.compress = true # properties do not come back on plumbing if a precompiled property is missed Goes to config.assets.compile = true # properties for URLs not equal to digest, config.assets.digest = true # error generated and saved by config.assets.prefix # config.assets.manifest = YOUR_PATH # Place header that your server files # config.action _dispatch.x_sendfile_header = = "X Sendfile" Apache Specifies that # for Apache # config.action_dispatch.x_sendfile_header = 'X-excel-redirection' # # for NGN #SNS to access the app on SSL Use hard-transport-safety, and use safe cookies. # Config.force_ssl = true # See everything in the log (default: info) # config.log_level =: debug # Prepare all the log lines with the following tags # config.log_tags = [: subdomain ,: uuid] #A separate For a distributed setup logger # config.logger = ActiveSupport :: TaggedLogging.new (SyslogLogger.new) # Use a different cache store in the output # config.cache_store =: mem_cache_store # Images, stylesheets, Config.action_controller from the Asset Server. Asset_host = "http://assets.example.com" # additional assets precompile (application.js, application.css, and all non-JS / CSS already added Are) # config.assets.precompile + =% W (search.js) # Disable the delivery errors, bad email address will be ignored # config.action_mailer.raise_delivery_errors = false # Enable thread mode # config.thread Safe! Enable local fallback for # I18n (Lookup for any place returns to # I18n.default_locale when no translation can be found) config.i18n.fallbacks = true # Send notifications to the registered listeners Dislike notification config.active_support .deprecation =: Inform # Questions to query more than the query # config.active_record.auto_explain_threshold_in_seconds (works with SQLite, MySQL, and PostgreSQL #) = 0.5 end   < P> Hope anyone can help! :)   

for public

Your issue is probably due to railway tracks in the production of rail asset pipeline which is your Js files precompiles / assets so your JS file is either not loaded or older. Look at the similar problem for what you are doing

Comments