guacamole with rails 4

28 views
Skip to first unread message

Klaus Humme

unread,
Nov 17, 2014, 7:03:33 AM11/17/14
to ashi...@googlegroups.com
Hi,

I've just started a new test app with ArangoDB and guacamole. Everything works fine. Running a 'rails generate scaffold ... ' creates all depending files, including the mapper in collections.

Can you tell me the next step? When the webserver is started and I try to get localhost:3000/users (model, views and controller generated during the rails g scaffold command), I get an error message that the method 'all' for User:Class ist not defined.

The code in the controller:

# GET /users
# GET /users.json
def index
 
@users = User.all
end
Thanks in advance

Klaus

Dirk Breuer

unread,
Nov 17, 2014, 8:03:41 AM11/17/14
to ashikawa
Hi Klaus,

great to hear you started with Guacamole and ArangoDB. And you already found an issue with the generators ;-)

The generators for the scaffolding were never properly tested as it seems. `User.all` is just wrong. It should be
`UsersCollection.all`.

I created an issue to address this problem: https://github.com/triAGENS/guacamole/issues/89. If you want feel free to grab it and work on it yourself ;-)

Hope I could help you a bit.

Regards
Dirk
> --
> You received this message because you are subscribed to the Google Groups "Ashikawa ArangoDB" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to ashikawa+u...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Klaus Humme

unread,
Nov 17, 2014, 9:07:12 AM11/17/14
to ashi...@googlegroups.com, ma...@breuer.io
Hi Dirk,

thanks a lot for your immediate answer. I can tell you, that 'rails generate controller...' will cause the same error.

I will fix this in my code and let you know, if I find some other issues.

Regards from the neighborhood (living in Düren)

Klaus
Reply all
Reply to author
Forward
0 new messages