Displaying 4 results from an estimated 4 matches for "list_value".
Did you mean:
last_value
2006 Jul 02
1
trouble with anchors
I am having trouble both setting and connecting to rails pages and
anchors.
using a collection, I am trying to set the anchors like this...
<a href="in_outs/list#name=<%= user_list_facility.list_value %>">\
<%= user_list_facility.list_value %></a>
which does sort of work...the resulting source html is:
<a href="name=15th Ave">15th Ave</a>
but if I click a link to the anchor, I get
Unknown action
No action responded to in_outs
which sort of makes se...
2006 Jun 16
0
trying to pick up a little speed...
..."Floater")
@facility = Facility.find(:all)
@facility = @facility << @main_office
@facility = @facility << @float
@bh_category = Valuelist.find(:all,
:conditions => ["list_name = ''BH Category''"],
:order => ''list_value'')
@position = Valuelist.find(:all,
:conditions => ["list_name = ''Position''"],
:order => ''list_value'')
# more select lists populated but snipped for clarity #
end
As you can see, I am setting @facility to the content...
2012 Jun 27
2
Select Helper Array of Array + Filter
Noob alert!
Hi, I am having trouble figuring out how to filter a select helper. The
following shows all of the rows in the table but I would like to filter
the collection from the list_name column (:list_name => "Project
Status"):
@project_status = Valuelist.all.collect {|s| [s.list_value,s.id]}
Thanks in advance, James
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org...
2006 Jun 19
9
index columns in postgres
...4 separate selection lists. I can''t see any difference in
speed. Do I have to reference the index within my controller code?
ie...
@employment_type = Valuelist.find(:all,
:conditions => ["list_name = ''Employment Type''"],
:order => ''list_value'')
@position = Valuelist.find(:all,
:conditions => ["list_name = ''Position''"],
:order => ''list_value'')
''list_name'' is now indexed but it still takes the same amount of time to
display this page which I a...