Why some model attributes not saved in the db?
问题 I have a Quote model in my rails app which has various attr types, some of which are being sent to / saved by the db, some are not and I cannot understand why. Please can you help me understand, thanks. quotes_controller.rb class QuotesController < ApplicationController def create @quote = Quote.new(quote_params) if @quote.save redirect_to root_url, notice: 'Quote request created' else render :new end end private def quote_params params.require(:quote).permit(:gla, :prev_cover, :co_name,