In Rails 3, it was possible to insert an attribute into params like so:
params[:post][:user_id] = current_user.id
I\'m attempting to do som
As an alternative for this case, you can required pass attribute via scope:
scope
current_user.posts.create(post_params)