As many of you know, setting the default action on LWRP resources is pretty tricky right now since it is not exposed by the DSL. Avishai Ish-Shalom has kindly provided a patch for this issue. Avishai’s patch allows you to specify the default action by adding
:default => _DEFAULT_ to the list of actions on the resource, like so:
actions :pass_buck, :prepare_thumbs, :twiddle_thumbs, :default => :pass_buck
An alternative implementation that has been proposed is to simply use the first action in the list as the default. Please chime in if you have a strong preference for one or the other.