Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8464835
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T14:52:13+00:00 2026-06-10T14:52:13+00:00

I am trying to implement a admin namespace into my web application . It

  • 0

I am trying to implement a admin namespace into my web application .It is working fine on my local machine but when I am trying to deploy the application none of my css is working.
I tried

rake assets:precompile

I have restarted the server .My structure looks like this

  • app

    • assets

      • stylesheets

        . application.css

        • admin

          • my_admin.css

The same structure is with Javascripts.In my layout file I have used

 <%= stylesheet_link_tag    "admin/my_admin" %>
 <%= javascript_include_tag "admin/my_admin" %>

When I run my application it works fine but none of my css nor javascript is there ..In my Browser inspector it is saying my_admin css and javascript not found.Any help??

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T14:52:14+00:00Added an answer on June 10, 2026 at 2:52 pm

    In production you likely have

    config.assets.compile = false
    

    in your config/environment/production.rb. This prevents the asset pipeline from compiling scripts on demand in production as it does in development.

    You need to specify any .js or .css assets you want precompiled which are not application.js or application.css.

    Adding the following to your config/environment/production.rb

    config.assets.precompile += ["admin/my_admin.css", "admin/my_admin.js"] 
    

    and running rake assets:precompile should put those compiled assets into public/assets for you.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one web application, with postgresql as DB, evrything is fine..now trying to
I am working on my web site and I am trying to implement a
I'm trying to implement a simple form-based login for my web application deployed with
I'm trying to implement svnperms into a repository, but am having difficulty with a
I'm trying to implement Search Engine. I have web application that displays list of
I am trying to implement the Facebook Like Button but its not working. In
I am trying to implement CKEditor in my CakePHP app admin section with a
I am trying implement a most recent widget into my tumblr post. So far,
I am trying to implement admin login and operators(india, australia, america) login, now operator
I am trying to implement WordPress into quite a large site with a complex

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.