Is choice method defined anywhere ? >>>> " if choice == 1 "
And keep your permitted params method outside create. def create end def webnairs_params if choice == 1 params.require(:webnair).permit(:user_id, :ppt, :choice, :title, :description) else params.require(:webnair).permit(:user_id, :presentation_id, :choice, :title, :description) end end On Fri, Sep 26, 2014 at 6:07 PM, Sai Ch <li...@ruby-forum.com> wrote: > please anybody give me some solution.......? > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscr...@googlegroups.com. > To post to this group, send email to rubyonrails-talk@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/rubyonrails-talk/f12d7650177b00c44da841ae7f2a443f%40ruby-forum.com > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-talk@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CAFKVRj8PVUNW1dCVWv5tr0eaqKyX-s_Rg6Matmh90Dr-0A3fCQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.