Ruby Ruby on Rails 5 Basics Creating an App Our First Resource

rails db:mirate

cannot see the page on browser after rails db:migrate. localhost:3000 is OK but localhost:3000/posts could not function well. Page error.

ExecJS::ProgramError in Posts#index

TypeError: Object doesn't support this property or method

2 Answers

Oscar Yuen
Oscar Yuen
Pro Student 4,759 Points


rake db:migrate

There are no rails db:migrate

Jay McGavren
Jay McGavren
Treehouse Teacher

This problem is actually related to your JavaScript runtime, not database migrations. Are you on Windows? If so, did you install Node.js and restart your system? There are also some additional steps here you could try.