quran / quran.com-frontend-v2

https://previous.quran.com
GNU General Public License v3.0
456 stars 199 forks source link

NoMethodError in Chapters#show undefined method `v2_page' #410

Closed skyloft7 closed 3 years ago

skyloft7 commented 3 years ago

I'm running a Linux Machine, Linux Mint 19.3 everything is up to date. I cloned the repo and set up RVM, Rails, Ruby, Postgres and Yarn.

My Ruby version is 3.0.0 and my Rails version is 6.1.3.1, and Postgres is 10.16, and Yarn is 1.22.5.

I started the server using 'rails s' on port 3000 and after a long first bootup, it finally loaded to the Quran.com homepage.

But everytime I go to read a surah, using one of the buttons there, It shows the error:

undefined method `v2_page' for #<Verse id: 1, chapter_id: 1, verse_number: 1, verse_index: 1, verse_key: [FILTERED], text_uthmani: "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ", text_indopak: "بِسۡمِ اللهِ الرَّحۡمٰنِ الرَّحِيۡمِ", text_imlaei_simple: "بسم الله الرحمن الرحيم", juz_number: 1, hizb_number: 1, rub_number: 1, sajdah_type: nil, sajdah_number: nil, page_number: 1, created_at: "2017-02-20 16:06:40.841580000 +0000", updated_at: "2020-09-07 03:48:09.679358000 +0000", image_url: "//c22506.r6.cf1.rackcdn.com/1_1.png", image_width: 675, verse_root_id: 1, verse_lemma_id: 1, verse_stem_id: 1, text_imlaei: "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ", text_uthmani_simple: "بسم الله الرحمن الرحيم", text_uthmani_tajweed: "بِسْمِ ٱللَّهِ <..."> excluded from capture: DSN not set

ActionView::Template::Error (undefined method `v2_page' for #<Verse id: 1, chapter_id: 1, verse_number: 1, verse_index: 1, verse_key: [FILTERED], text_uthmani: "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ", text_indopak: "بِسۡمِ اللهِ الرَّحۡمٰنِ الرَّحِيۡمِ", text_imlaei_simple: "بسم الله الرحمن الرحيم", juz_number: 1, hizb_number: 1, rub_number: 1, sajdah_type: nil, sajdah_number: nil, page_number: 1, created_at: "2017-02-20 16:06:40.841580000 +0000", updated_at: "2020-09-07 03:48:09.679358000 +0000", image_url: "//c22506.r6.cf1.rackcdn.com/1_1.png", image_width: 675, verse_root_id: 1, verse_lemma_id: 1, verse_stem_id: 1, text_imlaei: "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ", text_uthmani_simple: "بسم الله الرحمن الرحيم", text_uthmani_tajweed: "بِسْمِ ٱللَّهِ <...">): 7: 8: <% if @presenter.showing_qcf_font? %> 9: