I want to connect two entity (project and issues) and Rails says some error message, but I don't know, what should I do. Can you help me fix it, please? Thanks a lot.
相关问题
- Question marks after images and js/css files in ra
- Using :remote => true with hover event
- Eager-loading association count with Arel (Rails 3
- Is there a way to remove IDV Tags from an AIFF fil
- Rails how to handle error and exceptions in model
相关文章
- 关于Asp.net Mvc Core重写Initialize方法的问题
- Right way to deploy Rails + Puma + Postgres app to
- Spring: controller inheritance using @Controller a
- AWS S3 in rails - how to set the s3_signature_vers
- how to call a active record named scope with a str
- How to add a JSON column in MySQL with Rails 5 Mig
- “No explicit conversion of Symbol into String” for
- form_for wrong number of arguments in rails 4
Not sure what your are trying to do, but it looks like you have a nested resource and therefore want to pass an array to
form_for
, but you are actually passing two separate objects. Change:to:
With this change you'll pass one array for
form_for
, instead of two arguments.I think you have used nested resources like this:
If you used that, try make your form like this:
and in your IssueController :
and run again to see something happen. Hope this help.