Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ruby-on-rails/55.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails UsersControllerindex处理为空_Ruby On Rails_Ruby_Ruby On Rails 3 - Fatal编程技术网

Ruby on rails UsersControllerindex处理为空

Ruby on rails UsersControllerindex处理为空,ruby-on-rails,ruby,ruby-on-rails-3,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 a

我有一个使用搜索的移动版网站。当我搜索时,只加载布局,而不加载页面的其余部分。在控制台中,它似乎不知道使用什么格式。你知道哪里出了问题吗

这是一句话:

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)

我将&format=html添加到url中,并将其填充为黑色,因此UsersControllerindex将其处理为html,但页面仍然没有在布局中加载任何内容。您可以向我们显示users/index.mobile.erb的内容吗?