Permalink
Browse files

Fixes for live site running.

  • Loading branch information...
1 parent 388e6cd commit 90c8c4d09c98f651c5087e6a866a96347dc907ef @leenookx committed Feb 27, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 app/controllers/links_controller.rb
  2. +1 −1 app/models/links.rb
@@ -107,7 +107,7 @@ def create
userlink = UserLink.new
userlink.user_id = user.id
userlink.link_id = link.id
- userlink.keywords = params[:links][:keywords]
+ userlink.keywords = params[:additional][:keywords]
userlink.save
flash[:notice] = 'Link was successfully created.'
View
@@ -1,5 +1,5 @@
class Links < ActiveRecord::Base
- has_many :user_links, :polymorphic => true
+ has_many :user_links
URL_MIN_LENGTH = 10
TITLE_MIN_LENGTH = 0

0 comments on commit 90c8c4d

Please sign in to comment.