You should use
puts 
html_options[:name].scan(/^record((\[[^\]]*\])*)\[#{column.name[1]}\]/).inspect 
if html_options[:name]
Becuase previous regexp was wrong, I changed AS to use this one.

Also, you can check href on refresh link and look for scope there.

El Jueves, 15 de mayo de 2014 20:00:46 'Andrey Korobkov' via ActiveScaffold : 
Ruby on Rails Gem escribió:
> On Thu, 15 May 2014 16:39:09 +0200
> 
> Sergio Cambra <[email protected]> wrote:
> > However, that fix is setting a wrong url for refresh link because it's
> > failing to find scope. I think I have fixed, can you check with latest
> > master if refresh link include scope?
> Seems, like still not…
> It may be also related to not refreshing lists on :has_many => through
> subforms (can't find now where I was discussed it before)
> 
> 
> Started GET "/fremantle/resources/new?adapter=_list_inline_adapter" for
> 127.0.0.1 at 2014-05-15 19:53:58 +0400 Processing by
> Fremantle::ResourcesController#new as JS
>   Parameters: {"adapter"=>"_list_inline_adapter"}
>   Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_messages.html.erb (0.5ms)
> Fremantle::ResourceType Load (1.1ms)  SELECT "fremantle_resource_types".*
> FROM "fremantle_resource_types"   ORDER BY
> "fremantle_resource_types"."name" ASC record[resource_type]
> [[nil]]
>   Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb
> (8.1ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_record.html.erb
> (0.0ms) Fremantle::Person Load (1.6ms)  SELECT "fremantle_people".* FROM
> "fremantle_people"   ORDER BY "fremantle_people"."full_name" ASC,
> fremantle_people.full_name record[person_resources][1400169238853][person]
> []
>   Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_record.html.erb
> (93.9ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform_footer.html.erb
> (0.1ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform.html.erb (135.3ms)
> (1.0ms)  SELECT COUNT(*) FROM "fremantle_person_resources"  WHERE
> "fremantle_person_resources"."resource_id" IS NULL Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_footer.html.erb
> (9.2ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association.html.erb (172.3ms)
> Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb
> (9.5ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_record.html.erb
> (0.0ms) Fremantle::Subdivision Load (1.0ms)  SELECT
> "fremantle_subdivisions".* FROM "fremantle_subdivisions"   ORDER BY
> "fremantle_subdivisions"."short_name" ASC,
> fremantle_subdivisions.short_name Fremantle::Faculty Load (0.9ms)  SELECT 
> "fremantle_faculties".* FROM "fremantle_faculties"  WHERE
> "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 1]]
> Fremantle::Organization Load (1.0ms)  SELECT  "fremantle_organizations".*
> FROM "fremantle_organizations"  WHERE "fremantle_organizations"."id" = $1 
> ORDER BY "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 1]]
> CACHE (0.0ms)  SELECT  "fremantle_faculties".* FROM "fremantle_faculties" 
> WHERE "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 1]] CACHE (0.0ms) 
> SELECT  "fremantle_organizations".* FROM "fremantle_organizations"  WHERE
> "fremantle_organizations"."id" = $1  ORDER BY
> "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 1]]
> Fremantle::Faculty Load (0.9ms)  SELECT  "fremantle_faculties".* FROM
> "fremantle_faculties"  WHERE "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 2]] CACHE (0.0ms) 
> SELECT  "fremantle_organizations".* FROM "fremantle_organizations"  WHERE
> "fremantle_organizations"."id" = $1  ORDER BY
> "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 1]] CACHE
> (0.0ms)  SELECT  "fremantle_faculties".* FROM "fremantle_faculties"  WHERE
> "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 2]] CACHE (0.0ms) 
> SELECT  "fremantle_organizations".* FROM "fremantle_organizations"  WHERE
> "fremantle_organizations"."id" = $1  ORDER BY
> "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 1]]
> Fremantle::Faculty Load (0.8ms)  SELECT  "fremantle_faculties".* FROM
> "fremantle_faculties"  WHERE "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 3]]
> Fremantle::Organization Load (0.9ms)  SELECT  "fremantle_organizations".*
> FROM "fremantle_organizations"  WHERE "fremantle_organizations"."id" = $1 
> ORDER BY "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 2]]
> CACHE (0.0ms)  SELECT  "fremantle_faculties".* FROM "fremantle_faculties" 
> WHERE "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 3]] CACHE (0.0ms) 
> SELECT  "fremantle_organizations".* FROM "fremantle_organizations"  WHERE
> "fremantle_organizations"."id" = $1  ORDER BY
> "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 2]]
> Fremantle::Faculty Load (0.7ms)  SELECT  "fremantle_faculties".* FROM
> "fremantle_faculties"  WHERE "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 4]] CACHE (0.0ms) 
> SELECT  "fremantle_organizations".* FROM "fremantle_organizations"  WHERE
> "fremantle_organizations"."id" = $1  ORDER BY
> "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 2]] CACHE
> (0.0ms)  SELECT  "fremantle_faculties".* FROM "fremantle_faculties"  WHERE
> "fremantle_faculties"."id" = $1  ORDER BY
> "fremantle_faculties"."short_name" ASC LIMIT 1  [["id", 4]] CACHE (0.1ms) 
> SELECT  "fremantle_organizations".* FROM "fremantle_organizations"  WHERE
> "fremantle_organizations"."id" = $1  ORDER BY
> "fremantle_organizations"."short_name" ASC LIMIT 1  [["id", 2]]
> record[subdivision_resources][1400169239045][subdivision]
> []
>   Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_record.html.erb
> (66.7ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform_footer.html.erb
> (0.1ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform.html.erb (110.0ms)
> (0.8ms)  SELECT COUNT(*) FROM "fremantle_subdivision_resources"  WHERE
> "fremantle_subdivision_resources"."resource_id" IS NULL Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_footer.html.erb
> (8.2ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association.html.erb (147.3ms)
> Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform_header.html.erb
> (4.4ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_record.html.erb
> (0.0ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_record.html.erb
> (30.3ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform_footer.html.erb
> (0.1ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_horizontal_subform.html.erb (67.7ms)
> (1.0ms)  SELECT COUNT(*) FROM "fremantle_attachments"  WHERE
> "fremantle_attachments"."attachable_id" IS NULL Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association_footer.html.erb
> (8.8ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form_association.html.erb (104.6ms)
> Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_form.html.erb (575.6ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_base_form.html.erb (596.5ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_create_form.html.erb (605.2ms)
> Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_messages.html.erb (0.2ms) Rendered
> /home/korobkov/.bundler/ruby/2.1.0/bundler/gems/active_scaffold-f48d15277ff
> 1/app/views/active_scaffold_overrides/_list_inline_adapter.html.erb (8.5ms)
> Completed 200 OK in 638ms (Views: 17.4ms | ActiveRecord: 12.0ms)


--------
[1] http://column.name/

-- 
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 http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.
  • ActionView::Templ... 'Andrey Korobkov' via ActiveScaffold : Ruby on Rails Gem
    • Re: ActionVi... 'Andrey Korobkov' via ActiveScaffold : Ruby on Rails Gem
      • Re: Acti... Sergio Cambra
        • Re: ... 'Andrey Korobkov' via ActiveScaffold : Ruby on Rails Gem
          • ... Sergio Cambra
            • ... 'Andrey Korobkov' via ActiveScaffold : Ruby on Rails Gem
              • ... Sergio Cambra
                • ... 'Andrey Korobkov' via ActiveScaffold : Ruby on Rails Gem
                • ... Sergio Cambra

Reply via email to