I am trying to render html from app/views/companies/new.html.erb on one of my pages, but I get the error:
Missing partial companies/_new.html.erb with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:erb, :builder, :raw, :ruby, :coffee, :arb, :haml, :jbuilder]}. Searched in: * "D:/Documents/Code/pandora/app/views" * "D:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/bootstrap-sass-extras-0.0.6/app/views" * "D:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/active_admin-d44c1b8a57cc/app/views" * "D:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/gems/kaminari-0.16.3/app/views" * "D:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0/bundler/gems/devise-b12658782ff4/app/views"
This is what I have to render in my html.erb file that I am trying to load when I get this error: <%= render "companies/new.html.erb" %>
What could be causing this and how could I fix it.
Thank you.
_new.html.erb. What exactly are you trying to do? If this is on the create action in the controller you can dorender :newwhich will tell the controller to render the files for the new action. - j-dexx