From this line I can assume you want to access params of :boxelement
@boxelement = Boxelement.new(params[:boxelement])
use the following line in order to access the params value.
puts params[:boxelement][:project_id]
puts params[:boxelement][:author_id]