Settings

Theme

Databound – exposes Ruby on Rails database to the JavaScript side

databound.me

2 points by Nedomas 11 years ago · 5 comments

Reader

jameskilton 11 years ago

Mind if I ask why this exists?

The operations side of me sees nothing but a massive security hole.

The developer in me sees anything built with this to be a maintenance nightmare, even more so than many Rails apps tend to be.

What benefit does this library provide?

  • NedomasOP 11 years ago

    Thanks for asking, James.

    Many Rails apps get/create/update database data on the Javascript side. Sometimes it is done using some kind of framework (Ember, Angular).

    This is for the times you don't use a full fledged framework - think React or something similar.

    Its benefit is that you don't have to set up routes, parsing/encoding for the data you send.

    It lets you securely choose which parts of the model you want the Javascript to edit (permitted_columns).

    It also works with Active Model Serializers (f.e. UserSerializer) - it lets you specify which attributes to send to the client.

    It is as secure as you would do it yourself.

    If possible, please hack the databound.me website and help me fix the holes if there are any.

    Thanks!

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection