मैंने एक नई रेल 3.2.5 परियोजनाएं शुरू कीं और संपत्ति पाइपलाइन अब और काम नहीं कर रही है। सीएसएस और जावास्क्रिप्ट फ़ाइल अब संकलित नहीं कर रहे हैं।संपत्ति पाइपलाइन टूटा हुआ है: फ्लाई सीएसएस और जेएस फाइलों पर संकलित नहीं
Started GET "/assets/application.css?body=1" for 127.0.0.1 at 2012-06-16 23:59:11 -0700
Served asset /application.css - 200 OK (0ms)
[2012-06-16 23:59:11] ERROR NoMethodError: undefined method `each' for nil:NilClass
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/handler/webrick.rb:71:in `service'
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:
Started GET "/assets/application.js?body=1" for 127.0.0.1 at 2012-06-16 23:59:11 -0700
Served asset /application.js - 200 OK (0ms)
[2012-06-16 23:59:11] ERROR NoMethodError: undefined method `each' for nil:NilClass
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/rack-1.3.6/lib/rack/handler/webrick.rb:71:in `service'
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:111:in `service'
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/webrick/httpserver.rb:70:in `run'
/Users/greg/.rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/webrick/server.rb:183:in `block in start_thread'
183:in `block in start_thread'
अद्यतन:
<!DOCTYPE html>
<html>
<head>
<title>Shorai</title>
<%= csrf_meta_tags %>
</head>
<body id=<%= params[:controller].sub('_controller', '') %>>
<% if current_user %>
<%= current_user.name %>
<%= link_to "Log out", signout_path %>
<% else %>
<%= link_to "Sign in", "/auth/37signals" %>
<% end %>
<%= yield %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
</body>
</html>
Update2:
application.scss
यह जब कोशिश संपत्ति उत्पन्न करने के लिए लॉग से उत्पादन होता है
*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
*
*= require_self
*= require_tree .
*/
Update3: http://f.imgtmp.com/Onpqv.png
मैं यह है कि क्या कारण है पता नहीं है, किसी को भी एक विचार है? ग्रेग
रेल 3.2.6 में अपग्रेड, क्योंकि 3.2.5 कई तरीकों से टूट गया है ... – shuriu
मुझे अभी भी रेल के साथ भी समस्या है 3.2.6 :( – Gregory
आउटपुट ऐसा लगता है कि आप किसी पृष्ठ पर जाकर देख सकते हैं ब्राउज़र। क्या आप देव, या उत्पादन में चल रहे हैं? जब आप रेक संपत्ति चलाते हैं तो क्या होता है: प्रीकंपाइल? – YuKagi