+1 for metaprogramming ruby. It is, by and far, my favorite Ruby book. Definitely a good read for anyone wanting to understand the cooler aspects of the Ruby language.
On Mon, Aug 2, 2010 at 11:07 AM, Nicolas Oury <[email protected]>wrote: > Thanks for the advices. I will get "Metaprogramming Ruby". > > Follow up from my experimentations with hobo_create. > If I have > > class Thing < ActiveRecord::Base > > hobo_model # Don't put anything above this > > .... > > def create_permitted? > true > end > > ... > > And I go to /things/new, I got a form. This is expected. > > However, if I keep that window open and set > > def create_permitted? > false > end > > and submit the form, it actually creates the Thing, which I find > surprising. > > I am running Hobo 1.01, on Ruby 1.8.2 and Rails 2.3.8. > Is there an incompability with these versions? > Is the form somehow "secured"? > > Best regards, > > Nicolas. > > -- > You received this message because you are subscribed to the Google Groups > "Hobo Users" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<hobousers%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/hobousers?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Hobo Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.
