ruby on rails - render :action raises ActionView::MissingTemplate -


मेरे पास दो नियंत्रक हैं, foo और बार

बार # डाबर में संबंधित dobar.js.erb फ़ाइल है, जो सही ढंग से प्रस्तुत करती है जब सीधे प्री> * / *; q = 0.5, टेक्स्ट / जावास्क्रिप्ट, एप्लिकेशन / जावास्क्रिप्ट, एप्लिकेशन / एक्स्क्रिप्ट, एप्लिकेशन / एक्स-लिस्माप्टकैप

foo # dofoo कमांड के साथ खत्म होता है रेंडर: एक्शन = & gt; '/ बार / दोबार' । इसका परिणाम निम्न त्रुटि संदेश में होता है:

  ActionView :: अनुपलब्ध टेम्पलेट (अनुपलब्ध टेम्पलेट foo / bar / action, / application / bar / action with {: locale = & gt; [: en],: प्रारूप = & gt; [: जेएस, "एप्लिकेशन / एक्स्प्लोज़िट", "एप्लीकेशन / एक्स-लिस्मास्क्रिप्ट",: html,: टेक्स्ट, जेएस, सीएसएस, आईआईसीएस, सीएसवी, पीएनजी, जेपीईजी, जीआईएफ,: बीएमपी,: झगड़ा,: एमपीईजी,: एक्सएमएल,: आरएसएस,: परमाणु,: यामएल,: मल्टीपार्ट_फॉर्म,: url_encoded_form,: json,: pdf,: zip],: हैंडलर्स = & gt; [: erb,: builder,: coffee ]}। में खोजें: * "/ डेवलपर / वर्कस्पेस / मायपोरेज / ऐप / विचार" * "/ यूज़र / बेड़े / आरआरएम / गेम्स / रुबी -1.9.3-पी 1 9 4 / गेम्स / ट्वीटर-बूटस्ट्रैप -रेल्स -2.1.0 / App / views "): ऐप / नियंत्रक / foo_controller.rb: 16:` dofoo 'में   

मैंने भी कोशिश की है:

  • रेंडर: एक्शन = & gt; '/ Bar / dobar',: format = & gt; [: जेएस]
  • रेंडर: एक्शन = & gt; 'बार / डॉबार'
  • रेंडर: टेम्पलेट = & gt; '/ Bar / dobar',: format = & gt; [: जेएस]

    क्या गलत है?

    <पी > यह कोशिश करें अगर आप सिर्फ टेम्प्लेट नॉन कार्रवाई कर रहे हैं,
      रेंडर: टेम्पलेट = & gt; 'बार / डाबर',: प्रारूप = & gt; [: जेएस]    

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -