由UsersController处理#index为空白

时间:2011-08-15 13:05:03

标签: ruby-on-rails ruby ruby-on-rails-3

我的网站的移动版本使用搜索。当我只搜索布局加载而不搜索页面的其余部分时。在控制台中看起来它不知道使用什么格式。关于出了什么问题的任何想法?

以下是该行:

Processing by UsersController#index as

和完整的请求:

Started GET "/users?mobile=1&search=a" for 127.0.0.1 at 2011-08-15 08:56:26 -040
0
  Processing by UsersController#index as
  Parameters: {"mobile"=>"1", "search"=>"a"}
  ←[1m←[35mUser Load (1.0ms)←[0m  SELECT users.* FROM "users" WHERE (name ILIKE
'%a%') ORDER BY name
  ←[1m←[36mSQL (1.0ms)←[0m  ←[1m SELECT a.attname, format_type(a.atttypid, a.att
typmod), d.adsrc, a.attnotnull
 FROM pg_attribute a LEFT JOIN pg_attrdef d
 ON a.attrelid = d.adrelid AND a.attnum = d.adnum
 WHERE a.attrelid = '"users"'::regclass
 AND a.attnum > 0 AND NOT a.attisdropped
 ORDER BY a.attnum
←[0m
Rendered users/index.mobile.erb within layouts/application (59.0ms)
Completed 200 OK in 623ms (Views: 485.0ms | ActiveRecord: 2.0ms)

0 个答案:

没有答案