Ruby on Rails Monday, November 29, 2010

Hi colin, 

as i have seen, authlogic does require default names like login, password etc. I was using t_login and t_password as i result getting these errors. 
I re-created my table with the new fields and everything works fine!!!

Home that helps someone else getting the same errors!!!

Thank you for your help!
Kostas
Κωνσταντίνος Λούπος
louposk@gmail.com


On Sat, Nov 27, 2010 at 2:36 PM, Colin Law <clanlaw@googlemail.com> wrote:
On 27 November 2010 12:21, Kostas L. <louposk@gmail.com> wrote:

Please don't top post, it makes it difficult to follow the thread.
Insert your reply into the previous post.  Thanks

> Hi colin,
> i have used these names because i have already created a php
> application using these names and i want to create the same
> application in rails.
> Its for a project in my university.
> I dont want to have different field names ..
> Do you think the problem is the names??? I dont think so...

Well the error message is NoMethodError, Model UserSession does not
respond to t_login which is saying the UserSession does not have a
method t_login, which suggests to me that the name is the problem.
Have you done something somewhere else in your code to tell Authlogic
to expect the different names?

It is easy enough to see if this is the problem here, just change
those few lines of code and see if that error goes away.

Colin

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.


--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment