You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{"lines"=>[{"title"=>"private-line","description"=>"Et pariatur eos eaquptas enim.","id"=>"wliTa-private-line"},{"title"=>"public-line","description"=>"This line can be viewed publicly","id"=>"wliTa-public-line"}]}
I want the id attribute to be at first attribute like below:
{"lines"=>[{"id"=>"wliTa-private-line","title"=>"private-line","description"=>"Et pariatur quae voluptas enim."},{"id"=>"wliTa-public-line","title"=>"public-line","description"=>"This line can be viewed publicly"}]}
Is this doable or any other solution to get this order of response?
The text was updated successfully, but these errors were encountered:
There is not a way to control the order of the nodes in RABL since a hash is by nature unordered. I am curious also, why does the order of the nodes matter?
Here is my rabl view.
and the response is:
I want the
id
attribute to be at first attribute like below:Is this doable or any other solution to get this order of response?
The text was updated successfully, but these errors were encountered: