Rails 疑难解决

1.错误: InvalidAuthenticityToken error:

解决方案:http://api.rubyonrails.org/classes/ActionController/RequestForgeryProtection/ClassMethods.html

 

2. 在community_engine开发过程中,若想自定义或修改里面的代码,但又不想每次重启server查看更新的结果,

在development环境下的解决方法:

Want Rails to reload the CE code on every request while in development mode? Add this to your development.rb:
config.after_initialize do
  Dependencies.load_once_paths = Dependencies.load_once_paths.select {|path| (path =~ /(community_engine)/).nil? } 

end

 

注:development.rb在RAILS_ROOT的config/environments下

 

 

 3. Rails 2.x版本后需要单独安装In Place Editing插件
http://svn.rubyonrails.org/rails//plugins/in_place_editing/

你可能感兴趣的:(Rails)