giano / devise_sms_activable

A snap-in to Devise to allow user activation via SMS token
MIT License
65 stars 75 forks source link

ArgumentError (wrong number of arguments (0 for 1)) #3

Open yashshah opened 11 years ago

yashshah commented 11 years ago

I implemented a small devise app using devise_sms_activable. I am using Rails 3.2.9 and Devise 3.1.0.

Here is my GitHub Respository: http://goo.gl/xp7lO1

I went through follow steps:

Added Devise Gem Devise:install and Generated Devise on User Model Generated Devise views Added Sms activable Gem Generate sms activable Migrated User model Added Phone field in Registration new views Added Phone in attr accessible in User Model

But, i am getting the following error: http://goo.gl/7URT0c

I will really appreciate if someone can help me solving this problem.

yashshah commented 11 years ago

I was able to overcome this problem by properly Auto loading lib.

But now, i am stuck at undefined method fail! (NoMethodError)

I am getting undefined method or variable fail! (NoMethodError). How can i access fail! in my helper method? I tried a lot to debug but i was not able to find any logic related to fail! in Devise code.

I will really appreciated if someone can help me fixing this error wrt Devise 3.1.0.

Here is the helper file: http://paste.kde.org/p8fecf169/