-
Notifications
You must be signed in to change notification settings - Fork 257
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ActionView::MissingTemplate #31
Comments
Please provide some more information on what you did if you want me to help you. |
I installed pwb on an existing project like in the instructions gem 'pwb', git: 'https://github.com/etewiah/property_web_builder', branch: 'master' 1 error.rails pwb:db:seed command returns |
C:\Users\admin\Desktop\RUBY\v5>rails pwb:db:seed --trace Tasks: TOP => pwb:db:seed |
You are using sqlite. The documentation states that you need to use Postgres. |
rails server -p 80
ActionView::MissingTemplate (Missing template C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/app/themes/default/views/layouts/pwb/application with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :haml, :jbuilder]}. Searched in:
actionview (5.0.5) lib/action_view/path_set.rb:46:in |
now I'm using postgres |
Have a look in the path where it says it cannot find the file. It is clearly in the source here: Your error message is saying it cannot find it: ActionView::MissingTemplate (Missing template C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/app/themes/default/views/layouts/pwb/application with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :haml, :jbuilder]}. You may have deleted the file somehow. |
No |
It should be possible to run a Rails project on windows but I've never done it myself so I can't help much. |
I am not new to ruby |
what os are you using? |
I run osx. Not sure if debian or ubuntu is better. |
Hi etewiah, I used your instructions to setup de app. Works like a charm! The example page has many of the functions that I need, actually more than I need. Now there is my problem: how exactly can I customize the web app? the models, controller, views, etc are all inside the gem, and I'm lost as how to put them in the app's folder |
Hi @rdosramos , glad you got it working. This guide to Rails engines explains how you can override the functionality in an engine: |
ActionView::MissingTemplate (Missing template C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/app/themes/default/views/layouts/pwb/application with {:locale=>[:en], :formats=>[:html], :variants=>[], :handlers=>[:raw, :erb, :html, :builder, :ruby, :coffee, :haml, :jbuilder]}.
Why ?
The text was updated successfully, but these errors were encountered: