ruby on rails - ActiveRecord::RecordNotFound -


I am trying to submit a form and receive this error: Event not found without id Here is the controller:

  def create @ event = event.fund (param [: event_id]) @envent_sponship = eventspaceship.New (param [ : Event_sponsorship]] @ event_sponship. Spacer_id = current_yuzar.edu @ event_sponship.events_id = @ avovart response_to dot | Format | If @Event_Sponsorship Sweet Format: {@ redirect_to @event_sponsorship, notice: 'Event sponsorship was created successfully.' } Format.json {render json: @event_sponsorship, status :: created, location: @event_sponsorship} and format.html {action: "new"} format.json {render json: @ event_sponsorship.errors, status :: unprocessable_entity} end End of   

Here's the form:

  

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -