Hi Stefan!

Welcome to the list. Please check my answers below:

El 14/10/13 13:59, Stefan Haslinger escribió:
> Hi!
> 
> I am an experienced Rails developer and I was always interested in Hobo.
> I am now half way through the latest Hobo book.
> First of it seems incredibly powerful, lots of the gems I am used to are
> already integrated, such as Bootstrap or Data Tables.
> I am highly impressed how far Hobo has gotten, since I looked into it
> last time three years ago.
> I'm not so much afraid of learning DRYML or new conventions, that will
> be rewarded almost instantly, I"m sure.
> 
> But I have a few question, that bother me, before I jump into a new
> project using Hobo, because I couldn't find infomation about
> compatibility in the Hobo manual:
> 
> 1.
> There seems to be a lot of magic in the models and controllers that make
> me unsure about compatibility with existing Rails features. 
> Does a Hobo controller /model still accepts stuff such as scopes /
> before_filters?

Yes. Hobo adds a default behaviour but you can easily override it. For
example, if you wanted to customise the index action in a controller,
just add the code to the controller:

before_filter :do_something

def do_something
  logger.info "Hello World"
end

def index
  @things = Thing.my_scope.order(:updated_at)
end

And you can always write a 100% custom controller like Rails. You just
need to remove the "hobo_model_controller" line. More info in the
controllers manual: http://www.hobocentral.net/manual/controllers

> 
> 2.
> The same Question about gems, such as for example Papertrail, Ancestry,
> or Nested Form: Is there a compatibility list, which gems work with Hobo
> and which don't?

>From my experience, anything that works with Rails works with Hobo. I
haven't used any of those mentioned but I usually work with tons of gems
without trouble: paperclip, spreadsheet, wicked pdf, capybara,
better_errors... to name a few.

> 
> 2.
> Last but not least: In a small test app, I find some of the bootstrap
> convenience helpers such the date picker not translated to German, is
> there an empty .yml template for all the bootstrap stuff that needs to
> be translated. I could help out with German.

The hobo bootstrap template uses the "bootstrap-datepicker-rails" gem to
provide the datepicker. It already comes with tons of locales, so you
just need to add a few lines to front_site.dryml:

<extend tag="bootstrap-datepicker">
  <old-bootstrap-datepicker language="de" weekstart="1" merge/>
</extend>

Warm regards,
Ignacio


> 
> If you know about any readings on the compatibility topic, please
> provide me with one link or another.
> 
> Greetings from Vienna, Austria,
> Stefan

-- 
Ignacio Huerta Arteche
http://www.ihuerta.net
Teléfono: 0034 645 70 77 35
Email realizado con software libre

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to