generate routes for all entries in table Rails 4 ruby 2.3

71 views Asked by At

I have a Table called Blog which has 20 entries. Now i want to create 20 routes fetching title from the Blog table with minimal code or method in routes file.

And i dont want to create it manually. like whenever i add new entry to table, new route need to be created.

0

There are 0 answers