Skip to main content
added 95 characters in body
Source Link
Ganesh Kunwar
  • 2.7k
  • 2
  • 23
  • 37
 @show = Question.find_by_question_status(params[:id]) 
and @show.question

If you us where statement then use:

@show.each do |show|
  show.question
end
 @show = Question.find_by_question_status(params[:id]) 
and @show.question
 @show = Question.find_by_question_status(params[:id]) 
and @show.question

If you us where statement then use:

@show.each do |show|
  show.question
end
added 39 characters in body
Source Link
Ganesh Kunwar
  • 2.7k
  • 2
  • 23
  • 37
 @show.each do= |sh|
Question.find_by_question_status(params[:id]) 
and sh@show.question
end
@show.each do |sh|
  sh.question
end
 @show = Question.find_by_question_status(params[:id]) 
and @show.question
Source Link
Ganesh Kunwar
  • 2.7k
  • 2
  • 23
  • 37

@show.each do |sh|
  sh.question
end