Rails - creating object using nested restful routes -


@shift_requirement belongs_to @reckoner - और मेरे मार्गों में

  संसाधन: गणनाकर्ता संसाधन करते हैं: Shift_requirements अंत   

/reckoners/show.html.erb में मेरे पास

  & lt;% = link_to 'एक बदलाव जोड़ें', [: नया, @ रिकॉर्डर, @shift_requirement]% & gt;   

... लेकिन मुझे नए @शेफ्ट_रेक्वाइंट की बजाय मुझे एक नए @ रेकॉन्चर मिल रहा है - मैं कहाँ जा रहा हूं?

आपको ये होना चाहिए:

  & lt;% = link_to 'एक बदलाव जोड़ें', [: नया, @ रेकॉन्नेर, : Shift_requirement]% & gt;    

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

objective c - how Set autolayout for multiple dynamic buttons and labells in iOS? -