Hi,

> I thought it worked but I still cannot view the recipe table when a
> user is signed in. Following error message raises:

> ActionView::TemplateError (undefined method `signed_up?' for
> nil:NilClass) on line #6 of app/views/recipes/index.dryml:

I reproduced the problem and it seems to be a bug in Hobo.

Try replace the lines in recipe.rb:

    transition :publish, { :not_published => :published }, :available_to => 
"acting_user if acting_user.signed_up?"
    transition :not_publish, { :published => :not_published }, :available_to => 
"acting_user if acting_user.signed_up?"

with

    transition :publish, { :not_published => :published }, :available_to => 
"User"
    transition :not_publish, { :published => :not_published }, :available_to => 
"User"

They both have same meanings and should work fine.

-----
Tomoaki Hayasaka <[email protected]>

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