Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

180
Views
NoMethodError (undefined method `permit' for #<Array:0x0000563ea01dba98>):
    const postData = { "post": [{
        "title": values.title,
        "location": values.location,
        "img_url": values.imageUrl,
        "description": values.description,
    }]};
    console.log(postData)

    fetch('/posts', {
        method: 'POST',
        headers: { 'Content-Type': 'application/json' },
        body: JSON.stringify(postData)
    })

 NoMethodError (undefined method `permit' for #<Array:0x0000563ea01dba98>):
  
app/controllers/posts_controller.rb:49:in `post_params'
app/controllers/posts_controller.rb:18:in `create'

I'm trying to post using the method shown to my ruby on rails backend and I keep getting the error.

about 4 years ago · Santiago Gelvez
1 answers
Answer question

0

Welp I answered my own question the const im using should be formatted like this instead

const postData = {
        title: values.title,
        location: values.location,
        img_url: values.imageUrl,
        description: values.description,
    };
about 4 years ago · Santiago Gelvez Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!