button_to HTML options not completely intuitive

While working on a site in Rails tonight I was adding a button_to that I wanted a JS confirmation requester. Well, based on my albeit beginner knowledge of Rails I thought the following would work:
[source:ruby]
< %= button_to "Empty Cart", :action => :empty, :confirm => "Really empty your cart?" %>
[/source]

Tags: 

Programming for kids, and older kids

One fault that could be levied at the computer industry is that they've lost a lot of the out-of-the-box creativity experience from the early days, back in the 80's when every computer you bought came out of the box with a programming language that anyone (with a manual or two) could start writing their own Hello World apps. Back then most people didn't learn to program at college, they learned from their $200 home computers.

Tags: 

Nested controllers with Goldberg (UPDATE: fixed in v0.2.1)

The Rails plugin Goldberg is really quite good for kick-starting a site with its permissions system and basic CMS. There is one small bug in it though, it doesn't like adding nested controllers in the admin console. There is, however, a simple work-around: simply go to e.g.:

Tags: 

Pages

Subscribe to Front page feed