as 3.1 form_ui not working as before

15 views
Skip to first unread message

Atastor

unread,
Sep 20, 2011, 4:44:37 PM9/20/11
to actives...@googlegroups.com
Given as-3.1 and class Bbb having many :aaas and class Aaa belonging to :bbb. aaa's as_config contains:

conf.columns[:bbb].form_ui = :select

When editing an aaa-record the current value of bbb is not shown, but "-select-".


Sergio Cambra .:: entreCables S.L. ::.

unread,
Sep 26, 2011, 5:02:15 AM9/26/11
to actives...@googlegroups.com

It's strange, I have used it many times, even in rails 3.1
Do you have some override?

--
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) ser...@entrecables.com

Atastor

unread,
Sep 26, 2011, 6:06:07 AM9/26/11
to actives...@googlegroups.com
Double checked, retraced the setup-steps; its really the most basic setup which already fails:

rvm use 1.9.2@rails-3_1
rails new select-problem
cd select-problem
<Add active_scaffold to Gemfile (via ':git =>' and to app/assets/*/application*>
bundle install
rails g active_scaffold Aaa name:string bbb_id:integer
rails g active_scaffold Bbb name:string
bundle exec rake db:migrate
<Add has_many/belongs_to in models and conf_ui = :select to AaasController>
rails s

add some aaas and some bbbs, and the described behavior can be demonstrated:

and klicking "Edit":


Regards
Michael



Sergio Cambra .:: entreCables S.L. ::.

unread,
Sep 26, 2011, 10:10:21 AM9/26/11
to actives...@googlegroups.com
It's fixed now, thanks

> <https://lh6.googleusercontent.com/-7g6cHQuN8Fk/ToBOWQ00vLI/AAAAAAAAAXw/lM7
> XjPGoy6E/Bildschirmfoto%2525202011-09-26%252520um%25252012.04.42.png> and
> klicking "Edit":
>
> <https://lh5.googleusercontent.com/-FuX3vfEsZLw/ToBOdQkXo1I/AAAAAAAAAX0/N9d
> O7UXwJb8/Bildschirmfoto%2525202011-09-26%252520um%25252012.04.48.png>
>
> Regards
> Michael

Atastor

unread,
Sep 26, 2011, 10:33:46 AM9/26/11
to actives...@googlegroups.com
Yepp, its working now, great!

Thanks
Michael

Reply all
Reply to author
Forward
0 new messages