Em 16-09-2013 17:02, Jeremy Evans escreveu:
On Monday, September 16, 2013 12:14:14 PM UTC-7, Rodrigo Rosenfeld
Rosas wrote:
Something like rails_admin, for instance, but with Sequel support...
There's scaffolding_extensions
(https://github.com/jeremyevans/scaffolding_extensions/), and I'm
working on a replacement that will use forme
(https://github.com/jeremyevans/forme/) as the form generator, but
it's not ready yet.
There are probably integration gems allowing Sequel to be used with
admin interfaces initially designed for ActiveRecord, but I don't have
experience with them.
Thank you, Jeremy. I've previously tried my own search for admin UI's
without success...
Then I had a hard time trying to setup your scaffolding_extensions in my
Rails app. After digging a lot in the source, I found out that I should
add the gem to the Gemfile, create a new controller, add the generic
routes to it, and add something like this to it:
layout false # this is required for picking the layout provided by
the gem
#scaffold User # I've tried this for a long time until I realized it
doesn't generate an index page
scaffold_all_models only: [User]
After that, I could get a basic version working, but I feel there's
something missing as it seems to be supposed to use jQuery tabs,
autocomplete and other components while the provided layout doesn't
include jQuery, but only a CSS reference to bootstrap, which isn't even
bundled by the gem it seems...
So, I believe it's not supposed to work out of the box without spending
some time creating a proper layout to support it, but I couldn't find
any instructions on what should be contained in such layout...
It would help if you could provide some simple instructions on how to
set it up in a Rails project.
Thanks for the heads up,
Rodrigo.
--
You received this message because you are subscribed to the Google Groups
"sequel-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sequel-talk.
For more options, visit https://groups.google.com/groups/opt_out.