Hmm.. well, maybe there's something weird in how it's handling things
through the controller/view.  I like to add raise -
name_of_variable_or_method_here- in controllers to get a glimpse of
states as it processes.  Then just move the raise around.

On the view side, I tend to add <%= h some_method_or_object.inspect %>

Otherwise, I don't see anything in particular that jumps out at me but
maybe those techniques can give a better direction to look.

On Feb 26, 6:35 am, François Beausoleil
<[email protected]> wrote:
> Hey Kevin!
>
> I checked my code and the gist. Copy paste error. I updated the gist.
>
> Just for the sake of it, I added accessible to both Employee
> relationships, to no avail.
>
> Thanks!
> François
>
> On 25 fév, 16:51, kevinpfromnm <[email protected]> wrote:
>
> > Only thing I'm thinking is your association should have an :accessible
> > => true for the input-many to actually work but that's not the problem
> > you describe.  Perhaps it's with the !user.guest? method... I thought
> > that was (being?) dumped in favor of user.signed_in? but your console
> > tests kinda rule that out.
>
> > On Feb 25, 11:39 am, François Beausoleil
>
> > <[email protected]> wrote:
> > > Hi all!
>
> > > I have companies, people and employees. Employees is an input-many on
> > > both the company and person form.  The show view shows me the
> > > employees just fine. But when I switch to edit, the employees editor
> > > disappears, unless I'm logged in as an administrator.
>
> > > In the Employee model, I have an #update_permitted? method that
> > > returns !acting_user.guest?. From the console, I can confirm that a
> > > regular user can in fact update the model, while from the UI, it is as
> > > I described above: the UI for the input-many is missing.
>
> > > This is using Hobo edge as a plugin
> > > 3abe182c7d79ec2e5abcb47b0c64650006b8badb on Rails 2.3.5.
>
> > > I pasted the offending code here:http://gist.github.com/314862
>
> > > I previously had problems with permissions 
> > > here:http://groups.google.com/group/hobousers/browse_frm/thread/5688f88beb...,
> > > but this time around, it's not because of a missing method.
>
> > > Thanks for any tips / pointers / docs.
> > > François
>
>

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