PiRSquared17 / activescaffold

Automatically exported from code.google.com/p/activescaffold
MIT License
0 stars 0 forks source link

Enhancement of active_scaffold_input_singular_association #769

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
File: lib/active_scaffold/helpers/form_column_helpers.rb
Method: active_scaffold_input_singular_association

I'd like to have a possibility to specify a default "selected" option if there 
is no associated record. What about the attached patch?

Original issue reported on code.google.com by r.stu...@googlemail.com on 8 Dec 2010 at 11:11

Attachments:

GoogleCodeExporter commented 9 years ago
You can set :selected in column.options now. It will be overrided by associated 
record. You have to use master branch to get this change 
(d89aa03fcecdfcac28c54745c223491289615371)

Original comment by sergio.c...@gmail.com on 9 Dec 2010 at 8:59

GoogleCodeExporter commented 9 years ago

Original comment by sergio.c...@gmail.com on 9 Dec 2010 at 9:00

GoogleCodeExporter commented 9 years ago
Thanks! Could the change be pushed to the rails-2.3 branch?

Original comment by r.stu...@googlemail.com on 9 Dec 2010 at 10:27

GoogleCodeExporter commented 9 years ago
The policy is only fix bugs in rails-2.3 branch, can't you update to master 
branch?

Original comment by sergio.c...@gmail.com on 10 Dec 2010 at 12:26

GoogleCodeExporter commented 9 years ago
I thought (based on the name of the "rails-2.3" branch), that master branch is 
no more compatible with Rails versions 2.3.x. Now I've checked the 
documentation and there is indeed a statement "incompatible changes can be 
introduced" in the README file.

But never mind, I'll try the update to master and can also eventually manage 
this little change locally for the rails-2.3 code.

Thanks for your effort.

Original comment by r.stu...@googlemail.com on 10 Dec 2010 at 1:21

GoogleCodeExporter commented 9 years ago
Yes, I create rails-2.3 branch to do some incompatible changes to master, but 
both support rails 2.3
You will have to update your helper overrides, other changes are deprecated but 
they should still work.

Original comment by sergio.c...@gmail.com on 13 Dec 2010 at 9:39