私はRubyでカスタム作成された小さなCMSに取り組んでおり、WebサイトはMongrelを使用して実行されています。残念ながら、私はRubyにまったく精通していません。ウェブサイトの一部が最近機能を停止しました(更新などに関連していないため、原因はわかりません)
Railsログの「production.log」を確認すると、次のように表示されます。
app / views / static /frontpage.rhtmlの25行目のActionView::TemplateError(nil:NilClassの未定義のメソッド `name'):22:<%Tabloid.find(:all、:limit => 4、:order = >'date DESC')。each do | tabloid |%> 23:24:<%= link_to tabloid.title、:controller =>'tabloid'、:action =>'show'、:id => tabloid.id% > 25:
<%= tabloid.date.strftime( "%d of%B、%Y")%>作成者:<%= Profile.find(:first、:conditions => ["user_id =?"、tabloid.user_id]) .name%> <%= Profile.find(:first、:conditions => ["user_id =?"、tabloid.user_id])。surname%>
26:<%= RedCloth.new(truncate(tabloid.texto、250))。to_html%>
27:<%(tabloid.texto.size> 250%> 28の場合):<%= link_to "続きを読む>"、:controller =>'tabloid'、:action =>'show'、:id => tabloid.id%>
app/views/static/frontpage.rhtml:25 app/views/static/frontpage.rhtml:22:in `each' app/views/static/frontpage.rhtml:22 /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in
send' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_view/renderable.rb:39:in
render'/usr /local/rubygems/gems/gems/actionpack-2.2.2/lib/action_view/template.rb:73:inrender_template' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_view/base.rb:256:in
render' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib /action_view/base.rb:367:in_render_with_layout' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_view/base.rb:254:in
render'render_for_file' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:896:in
/usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:1174:in render_without_benchmark' / usr / local / rubygems / gems /gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:inrender' /usr/local/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
realtime' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:inrender' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/base.rb:868:in
render_without_benchmark'/usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/benchmarking.rb:51:inrender' /usr/local/rubygems/gems/gems/activesupport-2.2.2/lib/active_support/core_ext/benchmark.rb:8:in
realtime' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib /action_controller/benchmarking.rb:51: のrender' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:122:in
ディスパッチ'/usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:132:indispatch_cgi' /usr/local/rubygems/gems/gems/actionpack-2.2.2/lib/action_controller/dispatcher.rb:39:in
ディスパッチ'/usr/local/rubygems/gems/gems/mongrel-1.1.5/lib /mongrel/rails.rb:76:inprocess' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in
synchronize'process' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel.rb:159:in
/usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel/rails.rb:74:in process_client' / usr / local / rubygems / gems /gems/mongrel-1.1.5/lib/mongrel.rb:158:ineach' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel.rb:158:in
process_client' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel.rb:285:inrun' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel.rb:285:in
initialize' / usr /local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel.rb:285:innew' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:282:in
run' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel/configurator.rb :281:each' /usr/local/rubygems/gems/gems/mongrel-1.1.5/lib/mongrel/configurator.rb:281:in
実行中 '
など。Mongrelログは実際にはしばらく更新されていません。問題が何であるか、またはどこで掘り続けるべきかについての指針はありますか?