lab2023 / hierapolis-rails

Gem for Hierapolis Rails Admin Theme
http://kebab-project.org/
MIT License
26 stars 6 forks source link

Singular Table Name Error #13

Open marjinal1st opened 10 years ago

marjinal1st commented 10 years ago

In this template, there is a name error occurring when you use a double word scaffold name. (Example; StaticPage)

It's because of the line "singular_table_name.capitalize". It's working correctly when "singular_table_name.classify" is used.

Example StaticPage scaffold => It's using "Static_page.model_name.human" in the template and works if you use "StaticPage.model_name.human"

Confirmed by @hamitturkukaya