ruby on rails - Undefined <fieldname> error for ActionItem -


मुझे निम्न त्रुटि मिल रही है:

अपरिभाषित विधि `comments = 'के लिए

& lt; क्रिया इटेम: 0x0000010643cb80 & gt;

नीचे दिए गए कोड:

correspondence_controller.rb

  कक्षा के संहिता नियंत्रक & lt; ApplicationController protect_from_forgery def जोड़ना पत्राचार = ActionItem.new correspondence.event_id = params [: event_id] correspondence.comments = 'cccc' # त्रुटि पत्र correspondence.user_id = params [: user_id] ## त्रुटि देता है अगर पत्राचार। पुन: प्रस्तुत: json = & gt ; {: स्थिति = & gt; : ठीक है} फिर से प्रस्तुत करना: json = & gt; {: स्थिति = & gt; : असफल} अंत अंत समाप्ति  

पत्राचार.आरबी

  वर्ग के संहिता & lt; ActiveRecord :: बेस एंड  

माइग्रेशन फ़ाइल

  वर्ग CreateCorespondences & lt; ActiveRecord :: माइग्रेशन डीफ़ बदल make_table: correspondences do | t | T.integer: event_id t.integer: user_id t.text: टिप्पणियाँ t.timestamps एंड एंड एंड  

परिवर्तन पत्राचार = ActionItem.new से पत्राचार = संवाद। नया


Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -