Web Development

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: 

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 Web Development