Displaying 4 results from an estimated 4 matches for "select_options".
2006 Jul 24
2
InPlaceSelectEditor question
...uage in
English)
       <% for @item in job.items %>
          <tr>
            <td><%= in_place_editor_field :item, :title %></td>
            <td><%= in_place_select_editor_field(
             :item,
             :language_id,
             {},
             :select_options =>
options_from_collection_for_select(@languages, ''id'', ''lang'')) %>
            </td>
                 ( ... more code ... )
          </tr>
        <% end %>
It works okay except that it displays item.language_id (which when clicked,
cor...
2006 Apr 22
3
Creating a select dropdown box with links to methods
What would be the best way to create a form select dropdown box and upon 
"submit" have it directly go to a controller method view?
I have something that somewhat works, but I think there is probably a 
much easier way to do it.  As of now, I have the dropdown list which 
when the form is submitted is handed to a controller method which 
basically
I have my dropdown box:
<%=
2007 Oct 05
1
Custom helpers for list of options?
Hi all,
I have a model that "belongs_to" many other models, many of those
models are just list of names, like country, state, city, profession
... I read about the country_select helper.
Is better to have all those tables or use custom helpers? what the rails way?
Thanks.
For example :  http://pastie.caboo.se/104092
# = Schema
# country_id       integer
# city_id          integer
#
2006 Apr 05
25
How to avoid bunch of <% %> ??
Hello, I would like to know is there is a way to avoid poluting the 
views with tons of <% %> ?
Like this
<%= start_form_tag() %>
<%= text_field_tag(''category[title]'', category.title, {:size => 20, 
:maxlength => 128}) %>
<% if not category.parent_id.nil? %>
	<%= select("category", "parent_id",
	            Category.find(:all,