我正在另一个视图中构造一个可变大小的表视图。表视图不应该滚动,因此我正在以编程方式确定其内容大小,并调整高度约束,以便表视图始终适合其内容。
我遇到的问题是关于打破约束的警告:
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you
我有这个应用程序显示了问题
试一试
按日期选择一些分级和刷新排序->不工作!!
传递给控制器的参数不包含"sort=date“,但仍然包含"sort=title”,怎么可能?但是,如果我删除浏览器中的cookie,则链接再次工作。抱歉,如果这是个愚蠢的问题。实际上,我在会话中存储了一些状态,根本不触及任何cookie结构。附件是"haml“代码。
-# This file is app/views/movies/index.html.haml
%h1 All Movies
=form_tag movies_path, :method => :get do