Are you sure constraints is not set in anyother place as string? Are you writing to params[:embedded]? I don't see where constraints could be converted to string in ActiveScaffold code.
You can try to disable cache_action_link_urls, in that controller or set_defaults, although I don't think it's related El lunes, 6 de febrero de 2017 4:19:23 (CET) Gloufy escribió: > wrong copy ! > > gem 'active_scaffold', :git => > 'https://github.com/activescaffold/active_scaffold.git' > > Le lundi 6 février 2017 13:16:48 UTC+1, Gloufy a écrit : > > yes... gem "active_scaffold_sortable",:git=>' > > https://github.com/activescaffold/active_scaffold_sortable.git' > > > > :-( > > > > Le lundi 6 février 2017 12:59:54 UTC+1, Sergio Cambra a écrit : > >> Are you using latest commit from master branch? > >> > >> embedded param from url looks wrong, it should be: > >> {"eid"=>"4c9a61f3feca0b56fdd50bb45f7ca6fa", > >> "embedded"=>{"constraints"=>{"per_id"=>"311"}}, > >> > >> "adapter"=>"_list_inline_adapter"} > >> > >> I guess you get this error when click new in embedded scaffold, not when > >> embedded is loaded. I can't reproduce it. > >> > >> El domingo, 5 de febrero de 2017 4:06:26 (CET) Gloufy escribió: > >> > TypeError in Commun::SportsController#edit > >> > no implicit conversion of Symbol into Integer > >> > Extracted source (around line *#11*): > >> > > >> > 9 > >> > 10 > >> > 11 > >> > 12 > >> > 13 > >> > 14 > >> > > >> > # Returns the current constraints > >> > def active_scaffold_constraints > >> > > >> > @active_scaffold_constraints ||= > >> > > >> > active_scaffold_embedded_params[:constraints] || {} end > >> > > >> > # For each enabled action, adds the constrained columns to the > >> > > >> > ActionColumns object (if it exists). > >> > > >> > = render :active_scaffold => "commun/sports",:constraints => { > >> > : > >> > :per_id => @user.fiche.id } > >> > > >> > Started GET > >> > >> "/commun/sports/new?eid=4c9a61f3feca0b56fdd50bb45f7ca6fa&embedded=constra > >> int>> > >> > s%3Dper_id%253D311&adapter=_list_inline_adapter" for X.X.X.X at > >> > >> 2017-02-05 > >> > >> > 13:04:03 +0100 > >> > > >> > Processing by Commun::SportsController#new as JS > >> > > >> > Parameters: {"eid"=>"4c9a61f3feca0b56fdd50bb45f7ca6fa", > >> > > >> > "embedded"=>"constraints=per_id%3D311", > >> > >> "adapter"=>"_list_inline_adapter"} > >> > >> > Hi since I'm in rails 5.0.1 I've got this error... can you help me ? -- 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 [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/activescaffold. For more options, visit https://groups.google.com/d/optout.
