Sam Pohlenz

Results 132 comments of Sam Pohlenz

First of all, sorry for the slow response to your question. > undefined method `human_attribute_name' for Company:Class This seems to indicate that the `Company` class is not a subclass of...

As it currently stands, `trestle-auth` and `trestle-omniauth` aren't designed to work in conjunction. It is either-or. Would you be able to describe your use case here? (I'm guessing password-based login...

This happens when your Customer object doesn't yet have an associated Address. To fix this, you can supply an extra argument to `fields_for`: ```ruby fields_for :address, customer.address || customer.build_address do...

As long as you have the `accepts_nested_attributes_for :address` line in your Customer model, then Rails should be automatically converting the input field names to `customer[address_attributes][field]`. It sounds like the input...

This currently isn't supported but is something that I would like to add support for, particularly inline SVGs for icons. Out of interest, is your goal to use an inline...

What issue are you seeing here? The form of `pluralize` that is being used here forces the inflector to use the current locale's pluralization rules (otherwise it defaults to English...

To be honest, I'm not 100% convinced which route is the best way to go here. > At the time default_plural is called, we already know, that translation is'n present...

User authorization support via Pundit is fairly high on the list of priorities for https://github.com/TrestleAdmin/trestle-auth. However it isn't currently supported yet.

Currently to do this you will need to copy and override the template from https://github.com/TrestleAdmin/trestle/blob/master/app/views/trestle/resource/index.html.erb for your admin. e.g. within `app/views/admin/jobs/index.html.erb`: ```erb ``` Cleaner ways to do this will be...

What field types are you using for these (I'm guessing multiple selects)? You may need to add in some model logic on the writer methods (e.g. `def sensors=(sensors)`) to reject...