Created
September 20, 2011 01:37
-
-
Save thatfunkymunki/1228098 to your computer and use it in GitHub Desktop.
strange ruby error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
hello.html.erb: | |
<h1>Say#hello</h1> | |
<p>Find me in app/views/say/hello.html.erb</p> | |
say_controller.rb | |
class SayController < ApplicationController | |
def hello | |
end | |
def goodbye | |
end | |
end | |
Both are autogenerated from 'rails generate controller Say hello goodbye' | |
Error upon starting 'rails server' and visiting localhost:3000/say/hello: | |
$ rails server | |
=> Booting WEBrick | |
=> Rails 3.1.0 application starting in development on http://0.0.0.0:3000 | |
=> Call with -d to detach | |
=> Ctrl-C to shutdown server | |
[2011-09-19 20:25:45] INFO WEBrick 1.3.1 | |
[2011-09-19 20:25:45] INFO ruby 1.8.7 (2011-06-30) [i386-mingw32] | |
[2011-09-19 20:25:45] INFO WEBrick::HTTPServer#start: pid=5052 port=3000 | |
Started GET "/say/hello" for 127.0.0.1 at Mon Sep 19 20:25:48 -0500 2011 | |
Processing by SayController#hello as HTML | |
Rendered say/hello.html.erb within layouts/application (16.0ms) | |
Compiled application.js (11ms) (pid 5052) | |
Completed 500 Internal Server Error in 234ms | |
ActionView::Template::Error (µîºσ░║σ¥£µ╣⌐µ╜ñτì╖σ▒£τÑôτæ│µ╡Ñπê│σ▒£τìúτëúτü⌐Γ╣┤τíÑσ▒ÑΓǺτì⌐µ╕áτæ»τêáµìѵ¥»µÑ«µò║ΓüñτìíµäáΓ | |
ëíµò¼τÇáµ╜▓τ뺵╡íµ╝áΓü▓µàóµì┤Γü¿µÑªµò¼α¿« | |
(in C:/Users/munki/workspace/demo/app/assets/javascripts/say.js.coffee)): | |
3: <head> | |
4: <title>Demo</title> | |
5: <%= stylesheet_link_tag "application" %> | |
6: <%= javascript_include_tag "application" %> | |
7: <%= csrf_meta_tags %> | |
8: </head> | |
9: <body> | |
app/views/layouts/application.html.erb:6:in `_app_views_layouts_application_html_erb__586175847_67866396' | |
Rendered c:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_trace.erb (2.0ms) | |
Rendered c:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/_request_and_response.erb (2.0ms | |
Rendered c:/Ruby187/lib/ruby/gems/1.8/gems/actionpack-3.1.0/lib/action_dispatch/middleware/templates/rescues/template_error.erb within rescue | |
Started GET "/assets/rails.png" for 127.0.0.1 at Mon Sep 19 20:26:30 -0500 2011 | |
Served asset /rails.png - 200 OK (10ms) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment