Routes with noqsl db

17 views
Skip to first unread message

hartmut bischoff

unread,
Feb 15, 2017, 11:04:25 AM2/15/17
to Ruby on Rails: Core
Hi altogether,

I am working on  rails integration of active-orient (https://github.com/topofocus/active-orient), introducing the nosql-database to rails.

A main difference between RDMS and nosql-Databases is the absence of a "id"-property/database-field.
Instead, a record is identified by "rid".

How difficult is it, to substitute "id" to "rid" in the (named and restful) routes and where is the right place to implement such a feature?

Thanks in advance

Hartmut


Dmitry Polushkin

unread,
Mar 1, 2017, 4:55:34 AM3/1/17
to Ruby on Rails: Core
Looks like you want to use to_param method in your models to present a rid value generated URLs.
Reply all
Reply to author
Forward
0 new messages