On the index.html.erb page, I am using a custom black background. This custom background, by default, is also used on all other pages including the page for new.html.erb (_form.html.erb), edit.html.erb, etc…
Is there a way to change the background on the other pages (for example a background that is white) on the other pages such as new.html.erb? If so, how can one do this?
I think you’re looking for layouts: http://guides.rubyonrails.org/layouts_and_rendering.html
Specifically, you could have a
black_backgroundand awhite_backgroundlayout. Then you just render your partials with one or the other layout depending on which you want.