DEV Community

Rohit Sharma
Rohit Sharma

Posted on • Edited on

1

Rails Routes in React (HELP)

In my project frontend is in React and the backend is Ruby on Rails. I was trying to get rails routes in React.

Right now
I am creating path using 'word1/:id/word2'.

Is there any better way of doing it?

Like the same way we do in rails -> 'word2_word1_path(:id)'?

Any suggestions will be helpful.

Top comments (0)

Image of Docusign

🛠️ Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more