Hack hack hack...

An open journal-- some of it written for you, but most of it is for me.

HAW-day12

  • js buttons on tag show pages
  • fix checkboxes/mass assigning tags

respond_to

This is basically a glorified case statement…

if no action is specified the default is the action of the namespace

1
2
3
4
5
6
7
def tag
    #some code
    respond_to do |f|
      f.html {redirect_to :back}
      f.js
    end
  end

So it looks for tag.js as the default…

  • BUG:

    • tell firefox not to autocomplete
  • checkboxes

  • get all the values
  • submit to server

  • loop through the elements

  • gather all the values (which are the ids)
  • find errors by ids
  • push in tag name signal

Comments