Git Product home page Git Product logo

Comments (14)

etewiah avatar etewiah commented on June 19, 2024 1

I run osx. Not sure if debian or ubuntu is better.

from property_web_builder.

etewiah avatar etewiah commented on June 19, 2024

Please provide some more information on what you did if you want me to help you.

from property_web_builder.

linuxweeva avatar linuxweeva commented on June 19, 2024

I installed pwb on an existing project like in the instructions

gem 'pwb', git: 'https://github.com/etewiah/property_web_builder', branch: 'master'
gem 'globalize', git: 'https://github.com/globalize/globalize'
gem 'paloma', github: 'fredngo/paloma'
bundle
mount Pwb::Engine => '/'
rails pwb:install:migrations
rails db:create
rails db:migrate
rails pwb:db:seed
.....

1 error.rails pwb:db:seed command returns
Can't cast Hash.
Then I ignore this and pass this step
When i run
rails server -p 80
It gives the error

from property_web_builder.

linuxweeva avatar linuxweeva commented on June 19, 2024

C:\Users\admin\Desktop\RUBY\v5>rails pwb:db:seed --trace
** Invoke pwb:db:seed (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute pwb:db:seed
rails aborted!
TypeError: can't cast Hash
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:41:in rescue in type_cast' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:30:in type_cast'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:162:in block in type_casted_binds' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:162:in map'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:162:in type_casted_binds' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:191:in exec_query'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:222:in exec_delete' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:133:in update'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/query_cache.rb:17:in update' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/relation.rb:89:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:559:in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/globalize-ce823d437b38/lib/patches/active_record/persistence.rb:7:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/locking/optimistic.rb:79:in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/attribute_methods/dirty.rb:119:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:306:in block in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:97:in run_callbacks'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:750:in _run_update_callbacks' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:306:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/timestamp.rb:81:in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:548:in create_or_update'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:298:in block in create_or_update' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:126:in call'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:126:in call' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:506:in block (2 levels) in compile'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:455:in call' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:455:in call'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:101:in __run_callbacks__' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:750:in _run_save_callbacks'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:298:in create_or_update' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:160:in save!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/validations.rb:50:in save!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/attribute_methods/dirty.rb:30:in save!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:324:in block in save!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:395:in block in with_transaction_returning_status'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:230:in transaction' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:211:in transaction'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:392:in with_transaction_returning_status' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:324:in save!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/suppressor.rb:45:in save!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:288:in block in update!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:395:in block in with_transaction_returning_status' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in block in transaction'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/transaction.rb:189:in within_new_transaction' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in transaction'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:211:in transaction' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:392:in with_transaction_returning_status'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:286:in update!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/lib/pwb/seeder.rb:84:in seed_agency'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/lib/pwb/seeder.rb:30:in seed!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/lib/tasks/pwb_tasks.rake:15:in block (3 levels) in <top (required)>'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in call' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in block in execute'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in each' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in execute'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain' C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:180:in invoke'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:152:in invoke_task' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block (2 levels) in top_level'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:108:in each' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block in top_level'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:117:in run_with_threads' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:102:in top_level'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands/rake_proxy.rb:14:in block in run_rake_task' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:178:in standard_exception_handling'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands/rake_proxy.rb:11:in run_rake_task' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands/commands_tasks.rb:51:in run_command!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands.rb:18:in <top (required)>' bin/rails:4:in require'
bin/rails:4:in <main>' TypeError: TypeError C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:202:in _type_cast'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/sqlite3/quoting.rb:42:in _type_cast' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:38:in type_cast'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:162:in block in type_casted_binds' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:162:in map'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/quoting.rb:162:in type_casted_binds' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:191:in exec_query'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/sqlite3_adapter.rb:222:in exec_delete' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:133:in update'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/query_cache.rb:17:in update' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/relation.rb:89:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:559:in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/globalize-ce823d437b38/lib/patches/active_record/persistence.rb:7:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/locking/optimistic.rb:79:in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/attribute_methods/dirty.rb:119:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:306:in block in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:97:in run_callbacks'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:750:in _run_update_callbacks' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:306:in _update_record'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/timestamp.rb:81:in _update_record' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:548:in create_or_update'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:298:in block in create_or_update' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:126:in call'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:126:in call' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:506:in block (2 levels) in compile'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:455:in call' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:455:in call'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:101:in __run_callbacks__' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activesupport-5.0.5/lib/active_support/callbacks.rb:750:in _run_save_callbacks'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/callbacks.rb:298:in create_or_update' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:160:in save!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/validations.rb:50:in save!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/attribute_methods/dirty.rb:30:in save!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:324:in block in save!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:395:in block in with_transaction_returning_status'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:230:in transaction' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:211:in transaction'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:392:in with_transaction_returning_status' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:324:in save!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/suppressor.rb:45:in save!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:288:in block in update!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:395:in block in with_transaction_returning_status' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in block in transaction'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/transaction.rb:189:in within_new_transaction' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/connection_adapters/abstract/database_statements.rb:232:in transaction'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:211:in transaction' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/transactions.rb:392:in with_transaction_returning_status'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/activerecord-5.0.5/lib/active_record/persistence.rb:286:in update!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/lib/pwb/seeder.rb:84:in seed_agency'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/lib/pwb/seeder.rb:30:in seed!' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/lib/tasks/pwb_tasks.rake:15:in block (3 levels) in <top (required)>'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in call' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in block in execute'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in each' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:250:in execute'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:194:in block in invoke_with_call_chain' C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/monitor.rb:211:in mon_synchronize'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:187:in invoke_with_call_chain' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/task.rb:180:in invoke'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:152:in invoke_task' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block (2 levels) in top_level'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:108:in each' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:108:in block in top_level'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:117:in run_with_threads' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:102:in top_level'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands/rake_proxy.rb:14:in block in run_rake_task' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/rake-12.0.0/lib/rake/application.rb:178:in standard_exception_handling'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands/rake_proxy.rb:11:in run_rake_task' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands/commands_tasks.rb:51:in run_command!'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/railties-5.0.5/lib/rails/commands.rb:18:in <top (required)>' bin/rails:4:in require'
bin/rails:4:in `

'
Tasks: TOP => pwb:db:seed

from property_web_builder.

etewiah avatar etewiah commented on June 19, 2024

You are using sqlite. The documentation states that you need to use Postgres.

from property_web_builder.

linuxweeva avatar linuxweeva commented on June 19, 2024

rails server -p 80
=> Booting Puma
=> Rails 5.0.5 application starting in development on http://localhost:80
=> Run rails server -h for more startup options
*** SIGUSR2 not implemented, signal based restart unavailable!
*** SIGUSR1 not implemented, signal based restart unavailable!
*** SIGHUP not implemented, signal based logs reopening unavailable!
Puma starting in single mode...

  • Version 3.9.1 (ruby 2.2.6-p396), codename: Private Caller
  • Min threads: 5, max threads: 5
  • Environment: development
  • Listening on tcp://localhost:80
    Use Ctrl-C to stop
    Started GET "/" for ::1 at 2017-08-02 06:10:27 +0400
    ActiveRecord::SchemaMigration Load (4.0ms) SELECT "schema_migrations".* FROM "schema_migrations"
    Processing by Pwb::WelcomeController#index as HTML
    (3.0ms) SELECT DISTINCT "translations"."locale" FROM "translations"
    Pwb::Content Load (2.5ms) SELECT "pwb_contents".* FROM "pwb_contents" WHERE "pwb_contents"."key" = $1 LIMIT $2 [["key", "footerInfo"], ["LIMIT", 1]]
    Pwb::Agency Load (2.5ms) SELECT "pwb_agencies".* FROM "pwb_agencies" WHERE "pwb_agencies"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
    Pwb::Website Load (2.5ms) SELECT "pwb_websites".* FROM "pwb_websites" WHERE "pwb_websites"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
    CACHE (0.0ms) SELECT "pwb_websites".* FROM "pwb_websites" WHERE "pwb_websites"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
    CACHE (0.0ms) SELECT "pwb_websites".* FROM "pwb_websites" WHERE "pwb_websites"."id" = $1 LIMIT $2 [["id", 1], ["LIMIT", 1]]
    (4.5ms) SELECT COUNT() FROM "comfy_cms_sites"
    Comfy::Cms::Site Load (1.5ms) SELECT "comfy_cms_sites".
    FROM "comfy_cms_sites" WHERE "comfy_cms_sites"."hostname" = $1 [["hostname", "localhost"]]
    Completed 500 Internal Server Error in 15092ms (ActiveRecord: 86.6ms)

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:

  • "C:/Users/admin/Desktop/RUBY/v9/app/themes/default/views"
  • "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/app/themes/default/views"
  • "C:/Users/admin/Desktop/RUBY/v9/app/views"
  • "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/app/views"
  • "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/comfortable_mexican_sofa-1.12.10/app/views"
  • "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/devise-4.3.0/app/views"
  • "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/paloma-40a84f5dfa5d/app/views"
  • "C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/paloma-40a84f5dfa5d/app/views"
    ):

actionview (5.0.5) lib/action_view/path_set.rb:46:in find' actionview (5.0.5) lib/action_view/lookup_context.rb:122:in find'
actionview (5.0.5) lib/action_view/renderer/abstract_renderer.rb:18:in find_template' actionview (5.0.5) lib/action_view/renderer/template_renderer.rb:89:in resolve_layout'
actionview (5.0.5) lib/action_view/renderer/template_renderer.rb:96:in resolve_layout' actionview (5.0.5) lib/action_view/renderer/template_renderer.rb:76:in find_layout'
actionview (5.0.5) lib/action_view/renderer/template_renderer.rb:60:in render_with_layout' actionview (5.0.5) lib/action_view/renderer/template_renderer.rb:52:in render_template'
actionview (5.0.5) lib/action_view/renderer/template_renderer.rb:14:in render' actionview (5.0.5) lib/action_view/renderer/renderer.rb:42:in render_template'
actionview (5.0.5) lib/action_view/renderer/renderer.rb:23:in render' actionview (5.0.5) lib/action_view/rendering.rb:104:in _render_template'
actionpack (5.0.5) lib/action_controller/metal/streaming.rb:217:in _render_template' actionview (5.0.5) lib/action_view/rendering.rb:83:in render_to_body'
actionpack (5.0.5) lib/action_controller/metal/rendering.rb:52:in render_to_body' actionpack (5.0.5) lib/action_controller/metal/renderers.rb:142:in render_to_body'
actionpack (5.0.5) lib/abstract_controller/rendering.rb:26:in render' actionpack (5.0.5) lib/action_controller/metal/rendering.rb:36:in render'
actionpack (5.0.5) lib/action_controller/metal/instrumentation.rb:44:in block (2 levels) in render' activesupport (5.0.5) lib/active_support/core_ext/benchmark.rb:12:in block in ms'
C:/RailsInstaller/Ruby2.2.0/lib/ruby/2.2.0/benchmark.rb:303:in realtime' activesupport (5.0.5) lib/active_support/core_ext/benchmark.rb:12:in ms'
actionpack (5.0.5) lib/action_controller/metal/instrumentation.rb:44:in block in render' actionpack (5.0.5) lib/action_controller/metal/instrumentation.rb:87:in cleanup_view_runtime'
activerecord (5.0.5) lib/active_record/railties/controller_runtime.rb:25:in cleanup_view_runtime' actionpack (5.0.5) lib/action_controller/metal/instrumentation.rb:43:in render'
comfortable_mexican_sofa (1.12.10) lib/comfortable_mexican_sofa/render_methods.rb:39:in render' C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/app/controllers/pwb/welcome_controller.rb:14:in index'
actionpack (5.0.5) lib/action_controller/metal/basic_implicit_render.rb:4:in send_action' actionpack (5.0.5) lib/abstract_controller/base.rb:188:in process_action'
actionpack (5.0.5) lib/action_controller/metal/rendering.rb:30:in process_action' actionpack (5.0.5) lib/abstract_controller/callbacks.rb:20:in block in process_action'
activesupport (5.0.5) lib/active_support/callbacks.rb:126:in call' activesupport (5.0.5) lib/active_support/callbacks.rb:126:in call'
activesupport (5.0.5) lib/active_support/callbacks.rb:506:in block (2 levels) in compile' activesupport (5.0.5) lib/active_support/callbacks.rb:455:in call'
activesupport (5.0.5) lib/active_support/callbacks.rb:455:in call' activesupport (5.0.5) lib/active_support/callbacks.rb:101:in run_callbacks'
activesupport (5.0.5) lib/active_support/callbacks.rb:750:in _run_process_action_callbacks' activesupport (5.0.5) lib/active_support/callbacks.rb:90:in run_callbacks'
actionpack (5.0.5) lib/abstract_controller/callbacks.rb:19:in process_action' actionpack (5.0.5) lib/action_controller/metal/rescue.rb:20:in process_action'
actionpack (5.0.5) lib/action_controller/metal/instrumentation.rb:32:in block in process_action' activesupport (5.0.5) lib/active_support/notifications.rb:164:in block in instrument'
activesupport (5.0.5) lib/active_support/notifications/instrumenter.rb:21:in instrument' activesupport (5.0.5) lib/active_support/notifications.rb:164:in instrument'
actionpack (5.0.5) lib/action_controller/metal/instrumentation.rb:30:in process_action' actionpack (5.0.5) lib/action_controller/metal/params_wrapper.rb:248:in process_action'
activerecord (5.0.5) lib/active_record/railties/controller_runtime.rb:18:in process_action' actionpack (5.0.5) lib/abstract_controller/base.rb:126:in process'
actionview (5.0.5) lib/action_view/rendering.rb:30:in process' actionpack (5.0.5) lib/action_controller/metal.rb:190:in dispatch'
actionpack (5.0.5) lib/action_controller/metal.rb:262:in dispatch' actionpack (5.0.5) lib/action_dispatch/routing/route_set.rb:50:in dispatch'
actionpack (5.0.5) lib/action_dispatch/routing/route_set.rb:32:in serve' actionpack (5.0.5) lib/action_dispatch/journey/router.rb:39:in block in serve'
actionpack (5.0.5) lib/action_dispatch/journey/router.rb:26:in each' actionpack (5.0.5) lib/action_dispatch/journey/router.rb:26:in serve'
actionpack (5.0.5) lib/action_dispatch/routing/route_set.rb:727:in call' railties (5.0.5) lib/rails/engine.rb:522:in call'
railties (5.0.5) lib/rails/railtie.rb:193:in public_send' railties (5.0.5) lib/rails/railtie.rb:193:in method_missing'
actionpack (5.0.5) lib/action_dispatch/routing/mapper.rb:17:in block in <class:Constraints>' actionpack (5.0.5) lib/action_dispatch/routing/mapper.rb:46:in call'
actionpack (5.0.5) lib/action_dispatch/routing/mapper.rb:46:in serve' actionpack (5.0.5) lib/action_dispatch/journey/router.rb:39:in block in serve'
actionpack (5.0.5) lib/action_dispatch/journey/router.rb:26:in each' actionpack (5.0.5) lib/action_dispatch/journey/router.rb:26:in serve'
actionpack (5.0.5) lib/action_dispatch/routing/route_set.rb:727:in call' warden (1.2.7) lib/warden/manager.rb:36:in block in call'
warden (1.2.7) lib/warden/manager.rb:35:in catch' warden (1.2.7) lib/warden/manager.rb:35:in call'
rack (2.0.3) lib/rack/etag.rb:25:in call' rack (2.0.3) lib/rack/conditional_get.rb:25:in call'
rack (2.0.3) lib/rack/head.rb:12:in call' rack (2.0.3) lib/rack/session/abstract/id.rb:232:in context'
rack (2.0.3) lib/rack/session/abstract/id.rb:226:in call' actionpack (5.0.5) lib/action_dispatch/middleware/cookies.rb:613:in call'
activerecord (5.0.5) lib/active_record/migration.rb:553:in call' actionpack (5.0.5) lib/action_dispatch/middleware/callbacks.rb:38:in block in call'
activesupport (5.0.5) lib/active_support/callbacks.rb:97:in __run_callbacks__' activesupport (5.0.5) lib/active_support/callbacks.rb:750:in _run_call_callbacks'
activesupport (5.0.5) lib/active_support/callbacks.rb:90:in run_callbacks' actionpack (5.0.5) lib/action_dispatch/middleware/callbacks.rb:36:in call'
actionpack (5.0.5) lib/action_dispatch/middleware/executor.rb:12:in call' actionpack (5.0.5) lib/action_dispatch/middleware/remote_ip.rb:79:in call'
actionpack (5.0.5) lib/action_dispatch/middleware/debug_exceptions.rb:49:in call' web-console (3.5.1) lib/web_console/middleware.rb:135:in call_app'
web-console (3.5.1) lib/web_console/middleware.rb:28:in block in call' web-console (3.5.1) lib/web_console/middleware.rb:18:in catch'
web-console (3.5.1) lib/web_console/middleware.rb:18:in call' actionpack (5.0.5) lib/action_dispatch/middleware/show_exceptions.rb:31:in call'
railties (5.0.5) lib/rails/rack/logger.rb:36:in call_app' railties (5.0.5) lib/rails/rack/logger.rb:24:in block in call'
activesupport (5.0.5) lib/active_support/tagged_logging.rb:69:in block in tagged' activesupport (5.0.5) lib/active_support/tagged_logging.rb:26:in tagged'
activesupport (5.0.5) lib/active_support/tagged_logging.rb:69:in tagged' railties (5.0.5) lib/rails/rack/logger.rb:24:in call'
sprockets-rails (3.2.0) lib/sprockets/rails/quiet_assets.rb:13:in call' request_store (1.3.2) lib/request_store/middleware.rb:9:in call'
actionpack (5.0.5) lib/action_dispatch/middleware/request_id.rb:24:in call' rack (2.0.3) lib/rack/method_override.rb:22:in call'
rack (2.0.3) lib/rack/runtime.rb:22:in call' activesupport (5.0.5) lib/active_support/cache/strategy/local_cache_middleware.rb:28:in call'
actionpack (5.0.5) lib/action_dispatch/middleware/executor.rb:12:in call' actionpack (5.0.5) lib/action_dispatch/middleware/static.rb:136:in call'
rack (2.0.3) lib/rack/sendfile.rb:111:in call' railties (5.0.5) lib/rails/engine.rb:522:in call'
puma (3.9.1) lib/puma/configuration.rb:224:in call' puma (3.9.1) lib/puma/server.rb:602:in handle_request'
puma (3.9.1) lib/puma/server.rb:435:in process_client' puma (3.9.1) lib/puma/server.rb:299:in block in run'
puma (3.9.1) lib/puma/thread_pool.rb:120:in call' puma (3.9.1) lib/puma/thread_pool.rb:120:in block in spawn_thread'
Rendering C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout
Rendering C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/_source.html.erb
Rendered C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/_source.html.erb (26.5ms)
Rendering C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb
Rendered C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (21.0ms)
Rendering C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb
Rendered C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (2.5ms)
Rendered C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/gems/actionpack-5.0.5/lib/action_dispatch/middleware/templates/rescues/missing_template.html.erb within rescues/layout (4468.7ms)

from property_web_builder.

linuxweeva avatar linuxweeva commented on June 19, 2024

now I'm using postgres
still that error

from property_web_builder.

etewiah avatar etewiah commented on June 19, 2024

Have a look in the path where it says it cannot find the file.

It is clearly in the source here:
https://github.com/etewiah/property_web_builder/blob/master/app/themes/default/views/layouts/pwb/application.html.erb

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.

from property_web_builder.

linuxweeva avatar linuxweeva commented on June 19, 2024

No
C:/RailsInstaller/Ruby2.2.0/lib/ruby/gems/2.2.0/bundler/gems/property_web_builder-9cc4baee61bb/app/themes/default/views/layouts/pwb/application.html.erb
I have this file
but it doesnt understand that the file is there
maybe the problem is because I am using windows ?
Will linux solve all the problems?

from property_web_builder.

etewiah avatar etewiah commented on June 19, 2024

It should be possible to run a Rails project on windows but I've never done it myself so I can't help much.
What exactly are you trying to achieve? If you just want to run the project, the best way is to click on the "deploy to heroku" button.
If you want to modify the code you will need to have some experience of Ruby on Rails. This will not be a good project if you are new to Ruby on Rails.

from property_web_builder.

linuxweeva avatar linuxweeva commented on June 19, 2024

I am not new to ruby
This is just the first time that ruby gives error on windows.
Whatever I will try to install this on linux

from property_web_builder.

linuxweeva avatar linuxweeva commented on June 19, 2024

what os are you using?
better debian or ubuntu?

from property_web_builder.

rdosramos avatar rdosramos commented on June 19, 2024

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

from property_web_builder.

etewiah avatar etewiah commented on June 19, 2024

Hi @rdosramos , glad you got it working.

This guide to Rails engines explains how you can override the functionality in an engine:

http://guides.rubyonrails.org/engines.html

from property_web_builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.