ruby on rails - undefined method `openid_identifier' for #<AccountSession: no credentials provided> -


I'm trying to get authlogic and openid in my app. So far its unpleasantness is serious. I have tried to follow the railcasts on the subject, but any gems or plugins start working.

After finishing A, I ended up (mentioned below that page) now I'm getting the error:

  ActionView :: TemplateError (# & lt; account Session: No credentials provided for & gt;) Undefined method 'OpenIDIdIFire' on app / view / account_session / new / line 13 .html.haml:  

I Can not decide whether this is any improvement yet or not.

View:

 % h3 Login: - form_for (@account_session) do | F | = F.error_messages% p = t 'account.login' = f.text_field: Login% p = t 'account.password' = f.password_field: Password% p = t 'account.openid_identifier' = f.text_field: openid_identifier < / Code> 

Controller:

  Class account session controller & lt; ApplicationController def new @account_session = Make AccountSession.new End DRF @account_session = AccountSession.new (params [: account_session]) @ account_session.save do | Results | If the result is Flash [: Notice] = I18n.t 'session.login_success' redirect_to root_url Other render: Action = & gt; Delete "new" and end and df @Account_session = AccountSession.find @ account_session.destroy flash [: notice] = I18n.t ('session.logout_message') redirect_to root_url end and  

Gems installed:

Ophthalmic (2.1.5, 2.1.4, 2.1.3) Autologic-Oide (1.0.4) Ruby -Openid (2.1.8, 2.1.7)

It would be great to hear that I was just dumbing something. It's been late and I'm watching it too long so that's a great possibility.

Thank you!

Have you read the document () for the plugin? It looks like you forgot to create / run the following migration:

  class AddUsersOpenidField & lt; ActiveRecord :: Migration DF self.up add_column: user,: openid_identifier ,: string add_index: user,: openid_identifier change_column: user, login, string,: default => Zero,: capsule = & gt; Correct change_column: user ,: crypted_password ,: string,: default = & gt; Zero,: capsule = & gt; True change_column: user ,: password_salt ,: string,: default => Zero,: capsule = & gt; True enddef self.down removal_column: user ,: openid_identifier [: login ,: crypted_password ,: password_salt] .each do | Field | User.all (: terms = & gt; "# {field} is NULL"). Each {| User | User.update_attribute (area, "") if user.send (field) .nil? } Change_column: User, Region ,: String,: Default = & gt; "",: Null => End of false end end  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -