我正在使用独白宝石和独白生成的视图。我正在尝试编辑视图,但我在任何视图文件中写入的内容实际上都没有显示在浏览器上。这是我的路线文件中的行:
mount Monologue::Engine, at: '/blog'
这是我的 monologue.rb 文件:
Monologue.config do |config|
config.site_name = "My blog"
config.site_subtitle = "my own place online"
config.site_url = "http://example.com"
config.meta_description = "This is my blog about..."
config.meta_keyword = "music, fun"
config.admin_force_ssl = false
config.posts_per_page = 10
# config.disqus_shortname = "my_disqus_shortname"
# LOCALE
config.twitter_locale = "en" # "fr"
config.facebook_like_locale = "en_US" # "fr_CA"
config.google_plusone_locale = "en"
#config.layout = "layouts/application"
# ANALYTICS
# config.gauge_analytics_site_id = "YOUR COGE FROM GAUG.ES"
# config.google_analytics_id = "YOUR GA CODE"
config.sidebar = ["latest_posts", "latest_tweets", "categories", "tag_cloud"]
#SOCIAL
config.twitter_username = "myhandle"
config.facebook_url = "https://www.facebook.com/myhandle"
config.facebook_logo = 'logo.png'
config.google_plus_account_url = "https://plus.google.com/u/1/.../posts"
config.linkedin_url = "http://www.linkedin.com/in/myhandle"
config.github_username = "myhandle"
config.show_rss_icon = true
end
出于某种原因,我可以在任何独白视图文件中删除或添加行,例如views/blog/layouts/application.html.erb
没有任何变化。我尝试#config.layout = "layouts/application
在 monologue.rb 文件中取消注释该行,这会从浏览器中删除所有样式(尽管我创建的 css 文件仍在浏览器中被调用和提供)但 html 中仍然没有实际工作. 为什么我的更改实际上都没有反映在浏览器中?