访问被拒绝,你可能没有权限或未登录。
  • 非常感谢楼上所有人的帮助和指导。我会加紧学习的.感谢你们抽出宝贵的时间。谢谢!

  • #27 楼 @springwq 好的我升级一下版本。有点郁闷.版本影响这么大。非常感谢指导

  • #24 楼 @springwq 尴尬了..改了 users_helper 后确实顺利跑起来了. 我开始学习时候是想着基础太薄弱,习题先空着,照着教程先做第一遍,有个印象,利于第二遍再细致的学习通篇教程,顺带做所有习题。问题竟然是出在这里. 按照你所说我报错信息没有给全,比较奇怪的是,为什么我的机器上显示不出来呢? argumenterror 这一段我的机器上完全没有显示呢,好奇怪啊

  • #21 楼 @chenge OK.wo shishi

  • #16 楼 @chenge ~ ruby -v ruby 2.0.0p643 (2015-02-25 revision 49749) [x86_64-darwin14.1.0]

  • #16 楼 @chenge 版本为 ruby 2.0.0p643

  • #10 楼 @springwq 感谢你的回复,检查过几遍了,和作者的代码没有任何差别,我把项目上传到了 github 上,这是链接https://github.com/58383788/sample_app.git

  • Rails.application.configure do
      # Settings specified here will take precedence over those in config/application.rb.
    
      # In the development environment your application's code is reloaded on
      # every request. This slows down response time but is perfect for development
      # since you don't have to restart the web server when you make code changes.
      config.cache_classes = false
    
      # Do not eager load code on boot.
      config.eager_load = false
    
      # Show full error reports and disable caching.
      config.consider_all_requests_local       = true
    
      # Don't care if the mailer can't send.
      config.action_mailer.raise_delivery_errors = false
    
      # Print deprecation notices to the Rails logger.
      config.active_support.deprecation = :log
    
      # Raise an error on page load if there are pending migrations.
      config.active_record.migration_error = :page_load
    
      # Debug mode disables concatenation and preprocessing of assets.
      # This option may cause significant delays in view rendering with a large
      # number of complex assets.
      config.assets.debug = true
    
      # Asset digests allow you to set far-future HTTP expiration dates on all assets,
      # yet still be able to expire them through the digest params.
      config.assets.digest = true
    
      # Adds additional error checking when serving assets at runtime.
      # Checks for improperly declared sprockets dependencies.
      # Raises helpful error messages.
      config.assets.raise_runtime_errors = true
    
      # Raises error for missing translations
      # config.action_view.raise_on_missing_translations = true
    end
    
  • #11 楼 @chenge 抱歉,基础太差了。满脑子雾水.很感谢你的耐心和提醒,我把 Log 删掉了. 我观察了一下 development.rb.你叫我修改的地方其实正是打开的。我补充一些环境和配置的基础吧. 谢谢,确实麻烦了,太新手见笑了

  • #4 楼 @chenge 呃?能具体一点吗。我不是很懂,要怎样改正呢?

  • #1 楼 @michael0015 是 Log 中的信息吗?