ruby-on-rails – 撤消rails生成设计视图

前端之家收集整理的这篇文章主要介绍了ruby-on-rails – 撤消rails生成设计视图前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我开始使用rails和 devise并且通过railscast而不是做rails生成设计:视图我做了rails生成设计视图,这让我有些头疼 – 我想撤消这个不幸$rails destroy devise views产生错误,所以我真的不知道如何回滚:

/usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/methods.rb:124:in block in constantize': uninitialized constant View (NameError)
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/methods.rb:123:in
each’
from /usr/local/lib/ruby/gems/1.9.1/gems/activesupport-3.0.9/lib/active_support/inflector/methods.rb:123:in constantize'
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.5.1/lib/devise/mapping.rb:80:in
to’
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.5.1/lib/devise/mapping.rb:75:in modules'
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.5.1/lib/devise/mapping.rb:92:in
routes’
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.5.1/lib/devise/mapping.rb:159:in default_used_route'
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.5.1/lib/devise/mapping.rb:69:in
initialize’
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.5.1/lib/devise.rb:291:in new'
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-1.5.1/lib/devise.rb:291:in
add_mapping’
from /usr/local/lib/ruby/gems/1.9.1/gems/devise-

任何想法我怎么能回滚?

解决方法

rails destroy devise views – 方便生成逆转
原文链接:https://www.f2er.com/ruby/268594.html

猜你在找的Ruby相关文章