Sha256: 5fd40cc03cf57fa62a62d62bfcc9d556849a35cdb5edf22196df97339303b826
Contents?: true
Size: 622 Bytes
Versions: 1
Compression:
Stored size: 622 Bytes
Contents
module C80Contest class BidController < ApplicationController def make_bid m = Bid.new(mess_params) respond_to do |format| if m.save # noinspection RubyResolve format.js settings = Setting.first # MessageOrderMailer.send_mess(m, settings.message_letter_subj).deliver else # noinspection RubyResolve format.js { render json: m.errors, status: :unprocessable_entity } end end end def mess_params # noinspection RubyResolve params.require(:bid).permit(:title, :phone, :photo) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_contest-0.1.1 | app/controllers/c80_contest/bid_controller.rb |