参考别人的sample,在applicatin.rb增加rescue_action_in_public方法定义:
class ApplicationController < ActionController::Base
# Pick a unique cookie name to distinguish our session data from others'
session :session_key => '_mingle_session_id'
def rescue_action_in_public(exception)
render :file=>"#{RAILS_ROOT}/public/500.html"
end
end
修改config=>config.action_controller.consider_all_requests_local = false
启动server,然后输入http://localhost:3000/aaa,但这个方法没有起作用,依然显示:
Routing Error
no route found to match "/aaa" with {:method=>:get}
还需要做什么设定呢?
分享到:
- 2007-10-25 20:52
- 浏览 1969
- 评论(1)
- 论坛回复 / 浏览 (1 / 2706)
- 查看更多
相关推荐
数据包:Team_Hector_MappingBox_RoboCup_2011_Rescue_Arena.bag
浙大Robocup rescue simulation
触摸屏 smart line smart 700 ie v3 smart1000 ie v3 恢复出厂 第三代精彩 面板的 USB 恢复模式
东南大学Robocup Rescue 基础源码,可以在Linux下安装Server后运行
华硕路由固件恢复工具Rescue_2102.zip ,这个适用于 windows 10 ,路由器固件的话需要另外下载。
gem 'rescue_up_to' 然后执行: $ bundle 或者自己安装: $ gem install rescue_up_to 用法 # Rescue / retry something, up to 10 times value = rescue_up_to(10.times) do # do something, rescue ...
5G_to_the_Rescue_Promise_Uncertainty
跨平台app、可以使用参考,具备图片压缩上传,学习或二次开发可以直接使用。united app,有登陆、注册、资料管理、页面切换等各种效果。
A_Novel_Reconfigurable_Robot_for_Urban_Search_and_Rescue
Swarm_Robotics_Search_and_Rescuer
Drive Rescue SOURCE CODE,一款非常厉害的文件恢复的源代码,套用了汇编。
RescueTime(时间记录工具)是一款来自国外简单实用的时间记录软件,通过该软件,用户可以清楚了解自己每一天消耗的时间情况,如聊天、工作、看视频、逛网页等,该软件能够清晰的将您在pc或移动设备上进行的所有操作...
Hill代码Evol_rescue_det_env Matlab实现了LoïcMarrec和Anne-Florence Bitbol撰写的“适应或灭亡:在逐渐恶化的环境中进行的进化救援”中描述的代码。 该代码包含LoïcMarrec和Anne-Florence Bitbol所描述的“适应...
(文件恢复D6代码)
CoppeliaSim model of ”Stability Control for End Effector of Mobile Manipulator in Uneven Terrain Based on Active Disturbance Rejection Control”
2007年robocup rescue世界冠军源码
======== #WordPress 主题为 Russell Rescue 为 TN 狗救援组织创建的自定义 WordPress 主题。 从 _S(下划线)创建的主题,包括引导框架。
Project_DA_Java_EN_Come_to_the_Re_c_of_a_Java_Application
1.3 OLAP to the rescue 8 Mondrian lets users drive analysis 8 ■ Mondrian is a low-cost, low-risk solution 11 ■ Mondrian is fast 13 ■ Mondrian is secure 14 ■ Mondrian is based on open standards 14 ...
转到刚刚克隆的“ rescue_nepal”文件夹,然后执行以下步骤。安装为了使它像在模拟器或测试设备上的实际应用一样工作,我们需要安装以下软件包。安装依赖项确保安装了运行该项目所需的所有依赖项。 在您的工作目录...