All threads / Create dynamic table for existing resource

Ask A Question

Notifications

You’re not receiving notifications from this thread.

Create dynamic table for existing resource

Simon Cooper asked in Tips

Hello.

I have an existing RoR site, and I've added a new resource that will allow users to add different coffee roasts. On the resulting table, I'd like users to be able to filter the restults based on attributes, (country, dark roast, espresso etc). I have a JSON-API for this. Whilst working out how to do that, I'm thinking I'd like the table to reduce dynamically, without having to reload the entire page. I've drifted towards the idea of having a seperate front-end to do this, but am now overwhelmed with all othe options. Should this be some JavaScript solution like, VueJS or Ember. Is there something in Rails that I can already take advantage of to accomplish this?

Happy New Year!

Just wondering if anyone had thoughts on this.

Hello Simon,

Good day..!!!

are you worrying only regarding Front end or back end architecture as well ?

Regards,
Mukheem

Just front end really Abdul. Basically looking to have the user be able to filter the results without the page reloading.

Join the discussion

Want to stay up-to-date with Ruby on Rails?

Join 37,344+ developers who get early access to new tutorials, screencasts, articles, and more.

    We care about the protection of your data. Read our Privacy Policy.

    logo Created with Sketch.

    Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

    © 2020 GoRails, LLC. All rights reserved.