Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

Tony's Profile

GitHub User: tbhockey

Site: www.photoramblr.com

Comments by Tony

Avatar

Thank you, I had run into the same issue. This fixed it.

Avatar

Very helpful, thanks!
If you want to use CSS triangles instead of images:

css
th .asc:after {
  width: 0;
  height: 0;
  content: "";
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
  position: absolute;
  margin-top: 7px;
  margin-left: 5px;
}

th .desc:after {
  width: 0;
  height: 0;
  content: "";
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #333;
  position: absolute;
  margin-top: 7px;
  margin-left: 5px;
}
Avatar

Wow thank you @Barwin! I've been wrestling with this for the past 2 days and just couldn't figure out what I was doing wrong. I also had a respond_to block and just needed to pop in a format.js. Works like a champ.

Avatar

Nevermind, my validations were failing because I had filtered them to only occur :on => :create.

Avatar

The fields for the password_resets edit form are not validating for me. Has anyone else had this problem?