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

162
Views
How do I add CSS or JS to JSON that I'm retrieving from an API in Rails?

After several days of reading and learning, I've finally figured out how to call an API on a Rails app and display it on a page.

Obviously, the API is returning the request in a JSON format, which is what's being displayed on the webpage. This is exactly what's being displayed..

{"data"=>{"id"=>501, "active"=>true, "type"=>"domestic", "legacy_id"=>66, "country_id"=>1161, "logo_path"=>"https://cdn.sportmonks.com/images/soccer/leagues/501.png", "name"=>"Premiership", "is_cup"=>false, "is_friendly"=>false, "current_season_id"=>18369, "current_round_id"=>247456, "current_stage_id"=>77453684, "live_standings"=>true, "coverage"=>{"predictions"=>true, "topscorer_goals"=>true, "topscorer_assists"=>true, "topscorer_cards"=>true}, "season"=>{"data"=>{"id"=>18369, "name"=>"2021/2022", "league_id"=>501, "is_current_season"=>true, "current_round_id"=>247456, "current_stage_id"=>77453684}}}, "meta"=>{"plans"=>[{"name"=>"Football Free Plan", "features"=>"Standard", "request_limit"=>"180,60", "sport"=>"Soccer"}], "sports"=>[{"id"=>1, "name"=>"Soccer", "current"=>true}]}}

I've been working with Rails for 2 weeks, so just finally getting that up is a big win for me. Now, I need to find my next step.

My question is, where do I look now to customize that data that's on the page? Even if all you provide is a link or maybe help me to make sure I'm asking the right questions, that'd be helpful.

about 4 years ago · Juan Pablo Isaza
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!