Displaying 5 results from an estimated 5 matches for "to_dropdown".
2006 Nov 04
0
[Markaby] select with acts_as_dropdown problem.
...Markby to convert a standard form witth selects. Can someone tell
me why this works:
<tr>
<td><label class="formLabel" for="task_owner_id">Owner</label></td>
<td><%= select ''task'', ''owner_id'', Owner.to_dropdown %></td>
</tr>
But, the Markaby conversion doesn''t?
tr do
td.formLabel do label "Owner" end
td do select( ''task'', ''owner_id'', capture(Owner.to_dropdown)) end
end
I''m sure I''m missing something sim...
2006 Apr 25
3
select boxe
yop,
http://rubyonrails.org/api/classes/ActionView/Helpers/FormHelper.html
ici j''ai vu qu''on pouvait g?n?rer des ?l?ment d''un formulaire gr?ce des
m?thodes. Apres quelque petite recherches j''ai trouv? comment g?n?rer un
select
<%= select(''category'', ''category.id'', Category.find_all.collect {|category|
category.nom})
2006 Jul 07
3
dynamically updating a listbox from another listbox
Hi,
I would like to be able to dynamically (without reloading the page)
change the values from one listbox when a user select items from another
listbox. I have a model ''Sector'' which has_many ''levels'' (and of cours,
''Level'' beyong_to ''sector''). I want to show the user two listboxes with
the sectors and levels. But
2006 Aug 14
0
acts_as_dropdown: NoMethodError on load
...tiverecord-1.14.4/lib/active_record/base.rb:1129:in
`method_missing'':
undefined method `acts_as_dropdown'' for User:Class (NoMethodError)
My other plugins are working fine.
I have the latest version of acts_as_dropdown.
Gems are up to date.
It works in the console! If I do User.to_dropdown, I get the expected
output.
It works okay for other classes with acts_as_dropdown, too. Just this one
class has issues.
Any guidance appreciated, especially if I''m overlooking something obvious.
--
-- Wes
-------------- next part --------------
An HTML attachment was scrubbed...
U...
2006 Apr 24
4
creating a select box
Hi
trying to create a select box in _form.rhtml.
I have a table called organisations that contains fileds, 2 being ''id''
and ''name''
these are the fields I need to bring over to the clients _form.rhtml.
whats the best way of going about that??
2 ways i have seen suggested that I cant get to work
-@organisations = Organisation.find_all placed this in def new