Hi Kevin,

I tried Bryan's suggestion by putting modifying the user controller as
shown below, but it still allows user to signup if they go to
http://myapp/signup.

class UsersController < ApplicationController

  hobo_user_controller

  auto_actions :all, :except => [ :index, :signup ]

end

I wanted to try your suggestion by going to remove the user
transition, but I could not find the section you mentioned below. Here
is what I have in my user model.

lass User < ActiveRecord::Base

  hobo_user_model # Don't put anything above this

  fields do
    username :string, :login => true, :name => true
    administrator :boolean, :default => false
    timestamps
  end

  set_admin_on_first_user

  # --- Hobo Permissions --- #

  # It is possible to override the permission system entirely by
  # returning true from super_user?
  # def super_user?; true; end

  def creatable_by?(creator)
    creator.administrator? || !administrator
  end

  def updatable_by?(updater, new)
    updater.administrator?
  end

  def deletable_by?(deleter)
    deleter.administrator?
  end

  def viewable_by?(viewer, field)
    true
  end

  def role
    nil
  end


  # --- Fallback permissions --- #

  # (Hobo checks these for models that do not define the *_by?
methods)

  def can_create?(obj)
    false
  end

  def can_update?(obj, new)
    false
  end

  def can_delete?(obj)
    false
  end

  def can_view?(obj, field)
    true
  end

end



On Oct 15, 10:09 am, kevinpfromnm <[email protected]> wrote:
>   Since Hobo_fan sent me a separate email, I figured I'd post the how
> to on removing the transition here in case it can help anyone else
> out.
>
> Transitions are housed in the model.  So to remove the signup
> transition, you'd go under the user model and in the lifecycle
> declaration there will be a group that starts like:
>
> create :signup, :available_to ...
>
> Removing that whole block of related to create, removes the transition
> that creates a new user.  At the same time, the controller won't
> create the signup and do_signup actions.
>
> On Oct 13, 5:42 pm, Bryan Larsen <[email protected]> wrote:
>
> > Setting up SSL is outside of the scope of Hobo (or even rails).  Look
> > for tutorials and/or the documentation for your web server.
>
> > Alternatively, you can run a reverse_proxy such as pound
> > (http://www.apsis.ch/pound/) in front of your web server.   This is
> > often the easiest option.
>
> > Bryan
>
> > Hobo_Fan wrote:
> > > Is there a tutorial how to set up SSL on hobo?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to