I have this code:
<b>Client</b><br />
<select name="repair_ticket[client_id]">
<% @clients.each do |client| %>
<option value="<%= client.id %>"
<%= '' selected'' if client.id ==
@repair_ticket.client_id %>>
<%= client.name%>
</option>
<% end %>
</select></p>
I want to put a sidebar in this list. How can I do that?
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
How can I put a sidebar_here?
<p>
<b>Client</b><br />
<select name="custom_search[client_id]">
<% @clients.each do |client| %>
<option value="<%= client.id %>"
<%= '' selected'' if client.id ==
@custom_search.client_id %>>
<%= client.name%>
</option>
<% end %>
</select></p>
--
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---
John Smith said the following on 21/01/08 02:51 PM:> How can I put a sidebar_here? > > <p> > <b>Client</b><br /> > <select name="custom_search[client_id]"> > <% @clients.each do |client| %> > <option value="<%= client.id %>" > <%= '' selected'' if client.id == @custom_search.client_id %>> > <%= client.name%> > </option> > <% end %> > </select></p>First, you need to have the CSS that supports the layout. There are many sites which describe how this work. Google is your friend here. However you may also want to look at the method described in "Modular Page Assembly in Rails" http://www.railsdev.ws/blog/3/modular-page-assembly-in-rails/ which is also a good read on views, partials and an interesting way of implementing ''custom skins'' But you will most definitely need the proper CSS -- I would rather try to persuade a man to go along, because once I have persuaded him he will stick. If I scare him, he will stay just as long as he is scared, and then he is gone. Dwight D. Eisenhower --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---