search for: apllicationcontrol

Displaying 2 results from an estimated 2 matches for "apllicationcontrol".

2010 Nov 20
6
syntax error, unexpected tSTRING_BEG
...rd_do or ''{'' or ''('' ...er.privilege == 50 ? {link_to ''Show'', product} : ''a'' );@out... in line <%= current_user.privilege == 50 ? {link_to ''Show'', product} : ''a'' %> current_user at ApllicationController def current_user return unless session[:user_id] @current_user ||= User.find_by_id(session[:user_id]) end -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group...
2007 Jul 30
0
Rails/MSSQL error
...39;20070730 13:57:25'', 1001, 1001, ''Expense '', ''20070730 13:57:25'') I have done all of the thing needed that makes rails support for unicode, like installing the unicode_0.1 gem, adding the $KCODE = ''u'' in the environment.rb and in the ApllicationController I have added: before_filter :set_charset def set_charset @headers["Content-Type"] = "text/html; charset=utf-8" suppress(ActiveRecord::StatementInvalid) do ActiveRecord::Base.connection.execute ''SET NAMES UTF8'' end end Also I have put...