How to better make Single resource edit page on Ruby on Rails

I have a main page and special information for this particular page, how to better implement the editing form at url, for example / home-page-edit / without /: id?

Upvotes: 0

Views: 70

Answers (1)

Mahabub Islam Prio
Mahabub Islam Prio

Reputation: 1085

You can do something like this. 1. Fetch edit page and form with the passed params: id, and_other_params 2. After loading edit form for specific resources based upon that params od value you can insert data. 3. Custom update action but updated based upon passed params and id.

** Please this may not be the ideal way for http-rest requests. Try to avoid this way.

Upvotes: 1

Related Questions