D
D
dexdev2013-11-14 18:22:54
Toaster
dexdev, 2013-11-14 18:22:54

How to delete a question from toster.ru?

I want to delete questions, what should I do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
P
Pavel, 2013-11-14
Druzyak @enej

If I understand the problem correctly:


def responce_params
  params[:response][:post_id] = params[:post_id]
  params.require(:responce).permit(:price, :comment, :post_id)
end

I
Igas, 2013-11-14
@Igas

something like this:

@post = Post.find(params[:post_id])
@responce.post = @post

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question