Displaying 1 result from an estimated 1 matches for "toherwise".
Did you mean:
otherwise
2006 Aug 02
3
find_by_column_name and for loop returns undef method `each''
...% end %>
My clients table has a client_status_id column that I''m trying to use.
It has values for each client such as 1, 2, 3 that corresponde with a
client_status table.
If I do Client.find(:all) in the first line I get all rows from the
database so everythng else seems to be working toherwise.
Once I figure out the correct find_by syntax I think I should move it
into a client model method also.
Any ideas?
--
Posted via http://www.ruby-forum.com/.