Displaying 1 result from an estimated 1 matches for "action_log".
Did you mean:
actionlog
2007 Oct 08
1
Rails reverses apostrophes
...new to Ruby on Rails so this might have a very simple
answer... My problem gives the following error message when I try to
call the count function for an item.
Mysql::Error: Unknown column ''TournamentTemplate'' in ''where clause'':
SELECT count(*) AS count_all FROM action_logs WHERE
(action_logs.loggable_id = 1 AND action_logs.loggable_type =
`TournamentTemplate`)
The row that generates the error looks like this:
<% if item and item.action_logs.count > 0 %>
Action_logs is a polymorphic class, so "item" can be one of many
loggable classes. The model...