Carlos Antonio da Silva
b2c7d2345f
Revert "Merge pull request #13027 from akshay-vishnoi/f-refactor"
...
This reverts commit f4a5a9ea4d
, reversing
changes made to 7ccb482181
.
Reason:
The logic is different, the first call to #option_value_selected? is for
the :selected option (the argument is the "selected" variable), the second
call is for the :disabled option (the argument is the "disabled" variable).
2013-11-25 09:32:32 -02:00
Akshay Vishnoi
0f2ef7b929
avoiding calling of #option_value_selected? two times
2013-11-25 15:36:27 +05:30
Rafael Mendonça França
1c6bcefe7e
Expand select documentation to tell about the block
...
[ci skip]
2013-09-23 11:19:35 -03:00
Bogdan Gusiev
57bf92c6de
Ability to pass block to AV#select helper
...
Example:
= select(report, "campaign_ids") do
- available_campaigns.each do |c|
%option{:data => {:tags => c.tags.to_json}, :value => c.id}= c.name
2013-09-23 14:25:42 +03:00
Xavier Noria
4a7fba09f4
RDoc tweaks
2013-08-07 06:10:18 +02:00
Carlos Antonio da Silva
1c4eb13345
Leave the knowledge of boolean tag values to content tag
...
content tag already knows which tags are boolean and the values that
should generate them when a truthy value is passed, so leave this logic
for it instead of duplicating when generating options tags.
2013-07-22 14:39:45 -03:00
Carlos Antonio da Silva
b973852feb
Use merge! to avoid a new hash and change some spots to 1.9 hash style
2013-07-22 14:36:10 -03:00
Karunakar (Ruby)
afa5445060
syntax fix for f.select doc. [ci skip] .
2013-07-22 18:04:50 +05:30
Vasiliy Ermolovich
cadfe4bf45
add support for html attributes to grouped_options_for_select
2013-07-20 17:14:28 +03:00
kennyj
94c72c45bb
Remove passing the prompt to grouped_options_for_select as an argument, because it was deprecated.
2013-06-28 03:11:00 +09:00
Artyom
2137f8842b
Fix documentation for grouped_collection_select [ci skip]
2013-06-27 19:52:37 +04:00
mariozig
bf044a9bbe
Fix typo in docs. HABTM associations should use a pluralized name
2013-06-25 15:35:03 -07:00
Piotr Sarnacki
0d6e8edc2a
Move actionpack/lib/action_view* into actionview/lib
2013-06-20 17:23:15 +02:00