Displaying 1 result from an estimated 1 matches for "navigation_link".
2006 Jun 05
2
dropdown
I''m using a dropdown on my form for a simple cms which displays the 
pages from the database.  I want to add some options to the dropdown 
that are not in the database.  Is there a way to do this?
Here''s my code so far:
<p><label for="navigation_link">Link</label><br/>
<%= select("navigation", "link", Page.find_all.collect {|p| [ p.title, 
p.id ] }) %></p>
What I want is to add in a link called "listings" that is not in the 
table as well as a link called "home".  I'...