Sorry I got a bit sidetracked for a while.
Ruby 2.3.1
Rails 4.2.6
ActiveScaffold 3.4.38
bitfields 0.7.0
2.3.1 > ActiveScaffold::Bridges[:bitfields].install?
=> true
2.3.1 > User.bitfields
=> {:role_bitfield=>{:general_admin=>1, :account_admin=>2,
:composite_admin=>4, :product_admin=>8}}
2.3.1 >
Admin::UsersController.active_scaffold_config.create.columns[:role_bitfield].class
=> ActiveScaffold::DataStructures::ActionColumns
And then I went to look at the config in the controller and noticed that I
was resetting the columns in a before filter to exclude some columns
depending whether it was displayed nested. If I don't do that, the bitfield
works perfectly. In this case, I don't even need this functionality now so
the fix is easy.
Thanks,
Jim
On Friday, August 26, 2016 at 3:02:01 AM UTC-4, Sergio Cambra wrote:
>
> El jueves, 25 de agosto de 2016 14:46:09 (CEST) Jim escribió:
>
> > The bitfield bridge isn't activating in my app. I thought it used to just
>
> > work. I don't see anything in the documentation related to specifying a
>
> > particular form_ui setting. Any ideas how I can start debugging this?
>
> >
>
> > Jim
>
>
>
> Post rails, bitfields and activescaffold versions.
>
>
>
> Check if bridge is active:
>
> ActiveScaffold::Bridges[:bitfields].install?
>
> Check if bitfields methods returns anything in your model. ActiveScaffold
> uses that method to get info about bitfields columns.
>
>
>
> Model.bitfields
>
>
>
> Then it makes bitfields column into group of columns. You can check
> whether that column in create action is ActionColumns class and what
> columns includes
>
>
>
>
> ModelsController.active_scaffold_config.create.columns[:bitfield_column].class
>
>
> PdfTemplatesController.active_scaffold_config.update.columns[:used_for].names_without_auth_check
>
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to activescaffold+unsubscr...@googlegroups.com.
To post to this group, send email to activescaffold@googlegroups.com.
Visit this group at https://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.