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.
Rails uses initialize internally. If you override default behaviour will not be carried out. So use
before_filterto initialize something in controllerExample: