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 9223335
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T04:03:16+00:00 2026-06-18T04:03:16+00:00

Here is my problem, I am quite new to rails. I have a controller.

  • 0

Here is my problem, I am quite new to rails. I have a controller. but when I add an initialize() method to that class, all the css is gone.
In another words I have a MovieController. Everything works as expected, but as soon as I add a new initialize method all the style of the page is gone. Any Idea.?

Thanks.
Jossie.

  • 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-18T04:03:17+00:00Added an answer on June 18, 2026 at 4:03 am

    Rails uses initialize internally. If you override default behaviour will not be carried out. So use before_filter to initialize something in controller
    Example:

      before_filter :my_initialization
    
      private
        def my_initialization
          #do here
        end
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm quite new here. I have a problem with the new iOS 5.1 slide-in
I am quite new to java android programming and I have a problem that
I have problem setting up phpmyadmin on my mac. I am quite new here
I do not have problem as such but I am quite new to Ruby.
I am quite new to C++, but have worked with C# for years, however
I am quite new to iphone development. I have a situation here. I have
Having a slight problem on C#, still quite new to the language but hoping
I'm coming from Sinatra to Rails and still quite new to Rails. My problem
I am quite new to dojo and I'm stuck with a problem here I
i'm quite new here but this site helped me a lot already, so I

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.