Entries from November 2007

November 14, 2007

Nice(r) Hash treatment for URLs

Isn’t it nice how Rails lets you add form elements using the convention: store[manager] = Bob Smith store[location][state] = Wisconsin store[location][zip] = 53590 And easily process them on the server side with something like: Store.new(params[:store]) So, why does this: link_to “Store”, :controller => :store, :action => :show, :store => { :manager => “Bob Smith”, :location [...]

November 9, 2007

click clack

Ran into an interesting issue today that I’m surprised I haven’t hit before. A list contains many entries, each displaying some high level data about what lies beneath. A click anywhere on the entry should take you to a more detailed view… The trick comes with the whole “click anywhere on the entry” bit. In [...]