These are chat archives for dry-rb/chat

4th
Jan 2017
MarkT
@paradisaeidae
Jan 04 2017 00:09
Hi dry! Looks like I've got some reading to do here...
Newbie Q: Is there anything such as justinfrench/formtastic#1197 as part of the dry collection? If not are there show stoppers in intergrating them?
Tim Riley
@timriley
Jan 04 2017 00:15
@paradisaeidae Looks lke Formtastic is built for Rails. We don’t have our own form builder gem right now, but there are ones like Reform that integrate fairly well with dry-rb gems like dry-validation.
MarkT
@paradisaeidae
Jan 04 2017 00:15
Thanks Tim!
Looks like there are some options: "Many are successfully using other ActiveModel-like ORMs and objects (DataMapper, MongoMapper, Mongoid, Authlogic, Devise...) but we're not guaranteeing full compatibility at this stage. Patches are welcome!"
Christopher Dennl-Ortega Arrieta
@cdennl
Jan 04 2017 12:11
@paradisaeidae trailblazer formular is a nice form builder gem which works nicely with dry-v (and reform), I use it by myself and it is developed by @fran-worley
George Millo
@georgemillo
Jan 04 2017 13:48
dry-web-roda generate app admin
No value provided for required options '--umbrella'
what is umbrella supposed to be?
ohhh wait I see
the name of my parent app so it knows what namespace to wrap things in
(right?)
George Millo
@georgemillo
Jan 04 2017 14:13
second mystery: I managed to generate my Admin app, but couldn't figure out how to actually get it mounted in my roots
got it working now by editing system/my_app_name/application.rb to the following:
module MyAppName
  class Application < Roda
    route do |r|
      r.on 'admin' do
        r.run Admin::Application.freeze.app
      end

      r.run Main::Application.freeze.app
    end
  end
end
am I doing it right?
Andy Holland
@AMHOL
Jan 04 2017 14:44
@georgemillo looks good to me
George Millo
@georgemillo
Jan 04 2017 14:55
third mystery: how did I manage to misspell 'routes' above, when I have to deal with that word all day every day as a web developer?
I don't know how to English
Andy Holland
@AMHOL
Jan 04 2017 15:41
:laughing: I didn't notice ;)
I haerd taht if you jmulbe up the ltetres in the mdidle of echa wrod in a snetnece poelpe can sitll raed it