已安装Devise但未找到任何方法

时间:2013-07-21 22:22:04

标签: ruby-on-rails ruby devise rubymine

我安装了Ruby 1.9.3然后安装了Rails 3然后安装了RubyMine 5.4。 我按照安装指南安装了Devise 3。

色器件:安装

设计用户

分贝:迁移

之后我尝试使用Devise中的any方法,但没有找到任何方法,如方法user_signed_innew_user_session_path等...

我可能错过了很简单的事情......

编辑:Routes.rb

C:\Ruby193\bin\ruby.exe -e $stdout.sync=true;$stderr.sync=true;load($0=ARGV.shift) C:\Ruby193\bin\rake routes
        new_user_session GET    /users/sign_in(.:format)       devise/sessions#new
            user_session POST   /users/sign_in(.:format)       devise/sessions#create
    destroy_user_session DELETE /users/sign_out(.:format)      devise/sessions#destroy
           user_password POST   /users/password(.:format)      devise/passwords#create
       new_user_password GET    /users/password/new(.:format)  devise/passwords#new
      edit_user_password GET    /users/password/edit(.:format) devise/passwords#edit
                         PUT    /users/password(.:format)      devise/passwords#update
cancel_user_registration GET    /users/cancel(.:format)        devise/registrations#cancel
       user_registration POST   /users(.:format)               devise/registrations#create
   new_user_registration GET    /users/sign_up(.:format)       devise/registrations#new
  edit_user_registration GET    /users/edit(.:format)          devise/registrations#edit
                         PUT    /users(.:format)               devise/registrations#update
                         DELETE /users(.:format)               devise/registrations#destroy
                   notes GET    /notes(.:format)               notes#index
                         POST   /notes(.:format)               notes#create
                new_note GET    /notes/new(.:format)           notes#new
               edit_note GET    /notes/:id/edit(.:format)      notes#edit
                    note GET    /notes/:id(.:format)           notes#show
                         PUT    /notes/:id(.:format)           notes#update
                         DELETE /notes/:id(.:format)           notes#destroy
                    root        /                              notes#index

Process finished with exit code 0

EDIT2: 好吧,看来它是RubyMine。由于某种原因,它不会识别任何Devise函数...... 虽然它显示我的错误,但应用程序似乎正常运行。

0 个答案:

没有答案