Skip to content
Browse files

minor tuning

  • Loading branch information...
1 parent 525971c commit ced13beeb99bc7fcaf8950e38b8af69db6facdc1 @neolee committed May 17, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 main.rb
View
2 main.rb
@@ -69,7 +69,7 @@ class Main < Base
:body => params[:body],
:created_at => Time.now
)
- post.user = User.first(:id => session[:user_id])
+ post.user_id = session[:user_id]
post.save
redirect '/posts/'

0 comments on commit ced13be

Please sign in to comment.
Something went wrong with that request. Please try again.