This isn't a question about how to use Twitter or Facebook API, but a simpler one about how to keep the databases in sync. What I want to do is to create a NEW linked account, and then attach that to the current user. I KNOW that my code currently is nonfunctional: 

On the Edit Profile page

```
<%= f.label :account %> <i>(link another account to this profile)</i><br />

<% form_for @user.linked_accounts do |f| %>
<%= f.text_field :username %>
  <%= f.collection_select :service, User::POSSIBLE_SERVICES, :to_s, :to_s, 
   :include_blank => true
  %>
<%= f.submit %>
<% end %>

```

How do I get it to submit into a devise database? It's definitely the " form\_for @user.linked\_accounts " I need to fix. I changed it to @user and I get a no-method error because :service is only defined in a linked account. I think that what I need to do is to create a new linked account, and then do the form\_for @user.new\_account.

The error I receive is:  

`SQLite3::SQLException: no such column: linked_accounts.user_id: SELECT "linked_accounts".* FROM "linked_accounts" WHERE ("linked_accounts".user_id = 1)`