When a user with the role "TeacherAdmin" is logged in. I be to check the enumerate to not consider the users with the role of "SysAdmin". I'm sure I just don't undergo the syntax change by reversal in the conditions. How can I create verbally this correctly?SyntaxError in User#enumerate Showing app/views/user/enumerate rhtml where lie #19 raised: compile errorC:/INSTAN~1.7-W/INSTAN~1/rails_apps/HWW/config/../app/views/user/enumerate rhtml:19: syntax error unexpected ',' expecting kTHEN or ':' or '\n' or ';' for user in User sight(:all. :conditions => [if user role == "TeacherAdmin"['user role <> "SysAdmin"']. ["users school_id = ?",session[:user_school_id]]) ; _erbout concat "\n" ^C:/INSTAN~1.7-W/INSTAN~1/rails_apps/HWW/config/../app/views/user/list rhtml:19: syntax error unexpected ')' expecting kEND for user in User find(:all. :conditions => [if user role == "TeacherAdmin"['user role <> "SysAdmin"']. ["users school_id = ?",session[:user_school_id]]) ; _erbout concat "\n" ^C:/INSTAN~1.7-W/INSTAN~1/rails_apps/HWW/config/../app/views/user/list rhtml:43: syntax error unexpected kEND expecting $endExtracted obtain (around lie #19): 16: </tr>17: 18: <tr>19: <% for user in User sight(:all. :conditions => [if user role == "TeacherAdmin"['user role <> "SysAdmin"']. ["users educate_id = ?",session[:user_educate_id]]) %>20: <td><%= user firstname %></td>21: <td><%= user lastname %></td>22: <td><%= user preferredname %></td>
Forex Groups - Tips on Trading
Related article:
http://railsforum.com/viewtopic.php?pid=39088#39088
comments | Add comment | Report as Spam
|