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?

Reply

Happy New Year!

Just wondering if anyone had thoughts on this.

Reply

Hello Simon,

Good day..!!!

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

Regards,
Mukheem

Reply

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

Reply
Join the discussion
Create an account Log in

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

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

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

    Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more.

    © 2024 GoRails, LLC. All rights reserved.