Search Results

Search found 5 results on 1 pages for 'shaliko'.

Page 1/1 | 1 

  • Mysql::Error: Duplicate entry

    - by Shaliko
    Hi I have a model class Gift < ActiveRecord::Base validates_uniqueness_of :giver_id, :scope => :account_id end add_index(:gifts, [:account_id, :giver_id], :uniq => true) Action def create @gift= Gift.new(params[:gift]) if @gift.save ... else ... end end In the "production" mode, I sometimes get an error ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry '122394471958-50301499' for key 'index_gifts_on_account_id_and_user_id' What the problem?

    Read the article

  • Mysql::Error: Duplicate entry

    - by Shaliko
    Hi I have a model class Gift < ActiveRecord::Base validates_uniqueness_of :giver_id, :scope => :account_id end add_index(:gifts, [:account_id, :giver_id], :uniq => true) Action def create @gift= Gift.new(params[:gift]) if @gift.save ... else ... end end In the "production" mode, I sometimes get an error ActiveRecord::StatementInvalid: Mysql::Error: Duplicate entry '122394471958-50301499' for key 'index_gifts_on_account_id_and_giver_id' What the problem?

    Read the article

  • FB connect mobile uthentication - Redirecting...

    - by Shaliko
    Hi all In our project we use FB connect authorization. For authentication via mobile phone using the link http://m.facebook.com/tos.php?api_key=2461ce...7e76&v=1.0&next=http://beta.my_servicet.net/fb_connects/new_merge&cancel=http://beta.my_servicet.net/account The user gets to FB and enter your username and password, then it should redirect to http://beta.my_servicet.net/fb_connects/new_merge But instead we see a screen with the text "Redirecting ...". Nothing else happens. My phone is iPhone.

    Read the article

  • Work with protocol OAuth without browser?

    - by Shaliko
    I am a developer a large social network. Does the protocol OAuth without browser? I plan to write desktop and mobile applications that can not use your browser to get access_token. It worries me step for get Access_token, I can not understand how to implement it. Give examples of code if possible ...

    Read the article

1