ruby on rails - Receiving "ActionView::Missing Template" error when hosting locally? -
trying view rails app, when host locally following error message:
missing template website_builder_engine/home/index, website_builder_engine/application/index {:handlers=>[:erb, :builder, :coffee], :formats=>[:html], :locale=>[:en, :en]}. searched in: * "/users/myname/orange-peacock/app/views" * "/users/myname/.rvm/gems/ruby-1.9.3-p545@mygemset/gems/frontend-helpers-0.1.3/app/views" * "/users/myname/.rvm/gems/ruby-1.9.3-p545@mygemset/gems/website_builder_engine-0.0.5/app/views" * "/users/myname/.rvm/gems/ruby-1.9.3-p545@mygemset/gems/devise-2.2.8/app/views"
any ideas?
simple answer need have view @ /app/views/home/index.html.erb
or website_builder_engine/home/index.html.erb
--
i don't think issue devise
itself, rather how you're accessing routes in app. imagine you're redirecting route (on unauthentication) doesn't exist (i.e home#index
):
#config/routes.rb root to: "home#index" devise_for :users, path_names: { sign_in: "login" } #-> routes views/devise/login
the way fix make sure have view available, , ensure devise
redirect correct route on authentication
--
a big if posted routes
file
Comments
Post a Comment