You can use text_field_tag
Add this to your form:
<%= text_field_tag 'quantity' %>
Then access quantity
as a parameter in your create action:
quantity = params[:quantity]
Make sure to whitelist the quantity
parameter. In Rails 4:
def line_item_params
params.require(:line_item).permit(:quantity)
end