开发者

getting a 500 server error when bring up a page in rails

So I am getting a 500 server error when attempting to bring up a rhtml page in rails. When I start the WEBrick server, I get the welcome to rails homepage. The name of the app is hello. I generated the controller from the command line and it looks like

class HelloController < App开发者_JS百科licationController
def there
end
end

I have my view (there.rhtml) in views/hello/there.rhtml. However the http://localhost:3000/hello/there gets a 500 sever error. I am currently running this on a vista box. Any ideas?


Have you defined the route ? It is defined in routes.rb . Also you can try checking the development logs to see what exactly is the issue .


could post the error log message? as Nm suggested it can be a route problem and if it is try to add this route in routes.rb file

map.connect '/hello/there', :controller => 'hello', :action => 'there'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜