Great news the multiple user security is just what I wanted. Thank you tom that has saved me some work :)
Not too bad — only one day later than advertised :-) It’s time to
gem update hobo
or
svn up vendor/plugins/hobo
Not content to fix a few of the problems in 0.6, we’ve added some major new features in 0.6.1
There’s a major overhaul to the Ajax part update mechanism. It’s now more secure and can cope with parts that need access to local variables.
Hobo now supports multiple user models, so you could for example have a separate model for regular users and administrators. Each has its own login and signup pages.
As always, see the changelog for the nitty gritty.
Great news the multiple user security is just what I wanted. Thank you tom that has saved me some work :)
Keith - first check out the changelog.
You could also try something like this:
hobo commandruby script/generate hobo_user_model administratorruby script/generate hobo_user_controller administratorIt’s worth having a look at user.rb and administrator.rb in app/models.
Then fire up the server and have a look at
Hi Tom,
Maybe I’m missing something, but the user tables don’t appear to be created. Is there a migration missing? After some trial and error, I created a user table with ‘username’, ‘password’, ‘crypted_password’ and ’salt’ fields and was then able to create users.
I then found that the ’show’ controller action was not working, apparently because of a missing ‘humantype’ method. I changed ‘humantype’ on line 4 of ‘generators/hoborapid/templates/themes/default/views’ to ‘typename’. That seems to work.
Now I seem to be back on the track.
Keith
Keith - we used to generate a migration stub which you could modify to add your own fields. We don’t do that anymore because we now generate the whole migration for you. Add your app specific user fields to the fields do block in user.rb, then run script/generate hobo_migration
Oh - and the other one was indeed a bug. I could have sworn I checked that was working :-)
Thanks for the great software. I am trying to figure out how to use the new user authentication system in 0.6.1. Is it documented anywhere yet? If not, I guess I’ll have to brew my own pot of Darjeeling…