Skip to content
This repository has been archived by the owner on Jul 17, 2018. It is now read-only.

Commit

Permalink
* fixes readme
Browse files Browse the repository at this point in the history
* added migration file
  • Loading branch information
Dmitry Vorotilin committed Jan 31, 2011
1 parent 2c92dd3 commit 2c05e06
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,15 @@ After first start your application, it's copying vkontakte.js to your javascript

* Link

put link somewhere, where you want
Put link somewhere, where you want:

<%= vkontakte_login_link "Login with vkontakte" %>

* User session

def create
@user_session = UserSession.new(params[:status] ? cookies : params[:user_session])
...
In create action:

@user_session = UserSession.new(params[:status] ? cookies : params[:user_session])

== Contributing to aavkontakte

Expand Down
9 changes: 9 additions & 0 deletions lib/migrate/add_vkontakte_id_to_user.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
class AddVkontakteIdToUser < ActiveRecord::Migration
def self.up
add_column :users, :vk_id, :string
end

def self.down
remove_column :users, :vk_id
end
end

0 comments on commit 2c05e06

Please sign in to comment.