Skip to main content

Create dynamic table for existing resource

Tips • Asked by Simon Cooper

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.


Login or Create An Account to join the conversation.

Subscribe to the newsletter

Join 24,647+ developers who get early access to new screencasts, articles, guides, updates, and more.

    By clicking this button, you agree to the GoRails Terms of Service and Privacy Policy.

    More of a social being? We're also on Twitter and YouTube.