Displaying 9 results from an estimated 9 matches for "listlin".
Did you mean:
listlib
2005 Dec 31
7
Dynamic form? Not really!
...=> @contact %>
<table border="0" cellpadding="3" cellpadding="0">
<tr>
<th>Field</th><th>Contents</th>
</tr>
### First part - My ''manual'' coded stuff
<% odd_or_even = 0 %>
<tr class="ListLine<%= odd_or_even %>"><td>Company</td>
<td>
<select name="contact[company_id]">
<% @companies.each do |company| %>
<option value="<%= company.id %>">
<%= company.name %>
</option>
<% end %...
2006 Feb 03
9
Because I''m very slow - trying to use console
I can''t see how to use variables so I am using console to test things
out...
clients table - a column named first_name
My very brief console session...
>> clients = Client.find_by_sql("select * from clients where first_name
= FN")
ActiveRecord::StatementInvalid: RuntimeError: ERROR C42703 Mcolumn
"fn" does not exist Fparse_expr.c L1034
2006 Apr 07
3
RJS removing content of div, but not div itself
...t;
Name:
<%= text_field_tag :name %>
Amount:
<%= text_field_tag :qty %>
<%= submit_tag ''Add Ingredient'' %>
<%= end_form_tag %>
----------------- _line_form.rhtml ----------------------
<div id = item<%= @ingredient.id %> class = Listline<%= session[:toggle_color] = 1 - session[:toggle_color].to_i %> >
<span class = ''leftcol''> <%= params[:name] %> </span>
<span class = ''midcol''> <%= params[:qty] %> </span>
<span class = ''rightcol...
2007 Feb 17
5
render collection with index
Is there any method for getting the current iteration (for changing row
colors) in the category partial?
<%=render(:partial => "category", :collection => @categories)%>
thanks,
andy
--
Andrew Stone
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post
2006 Jan 21
0
helpefying a list partial
Hi all,
I''ve got this code which is alway the same. In a list it displays a show, edit
and destroy icon behind each record.
<% for todo in @todos %>
<tr valign="top" class="ListLine<%= cycle("0","1") %>">
<td><%=h todo.prio %></td>
<td><%=h todo.title %></td>
<td><%= todo.description.gsub("\n", ''<br />'') %></td>
## It''s the part belo...
2006 Jan 22
0
Get colum types in auto form
...I''m trying to build a routine that generates table rows with the appropriate
field types (text_area and text_field for now), and filters out the
''created_at'' and ''deleted_at''.
<% for column in Project.content_columns %>
<tr class="ListLine<%= cycle("0","1") %>">
<td><%= column.human_name %>:</td>
## The line below
<% if column.string %>
<td><%= text_field ''project'', column.name %></td>
<% elsif column.text %>...
2006 Jan 28
0
Auto drop list: Create a form professional or easy?
...#39;t auto-create the droplists.
<%= start_form_tag :action=> "create_product" %>
<table class="tablehack">
<tr><th>Field</th><th>Contents</th></tr>
<% for column in Product.content_columns %>
<tr class="ListLine<%= cycle("0","1") %>">
<td><%= column.human_name %>:</td>
<td><%= text_field ''product'', column.name %></td>
</tr>
<% end %>
</table>
<input type="submit" value=&quo...
2006 Jan 26
42
ruby script/generate scaffold Product Admin hangs
Hi
I am running Mac OX tiger with the installed ruby 1.8.2, and
mysql5 (I checked that it was running in preference). I
tried to run the various fixes recommended in agileweb. I am
stuck on page 57, script/generate scaffold...
> Could you paste in your database.yml file, from the
> "config" folder inside your Rails app? If you have any
> passwords entered there, you should
2006 Mar 09
3
Need help PLEASE!!! - updating collection from form
...------------------------
<%= form_tag(:action => "update_illness") %>
<table cellpadding="5" cellspacing="0">
<%
odd_or_even = 0
for @illness in @illnesses
odd_or_even = 1 - odd_or_even
%>
<tr valign="top" class = "Listline<%= odd_or_even %>">
<td width="200">
<%=h @illness.illness %>
</td>
<td width="200">
<%= options = [["Select a qualifier", ""]] + Illness::DATE_QUALIFIERS
select("illness[]...