hey
do you have :accessible => true on the has_many ?
greetings,
sol
On Tue, Feb 24, 2009 at 09:55:56AM -0800, Gert Thiel wrote:
>
> hoi.
>
> i have a model task which has_many :complements which shall be
> editable using the task's edit form.
>
> the task edit.dryml includes:
>
> <complements-view:>
> <input-all><field-list no-edit /></input-all>
> </complements-view:>
>
> Some complements are editable (update_permitted? is true), some
> aren't.
>
> Whenever I try to sumbit an updated task Hobo yells:
>
> That operation is not allowed
>
> Exception:
> #<Hobo::PermissionDeniedError: Complement#update>
> params:
> {"page_path"=>"tasks/edit",
> "authenticity_token"=>"f76fcaf523e54c241f9b2aa2a3390845a1a3e0cd",
> "_method"=>"PUT",
> "action"=>"update",
> "task"=>
> {"status"=>"Authoring",
> "complements"=>
> {"0"=>
> {"name"=>"textnr",
> "task_id"=>"2",
> "value"=>"alpha-1",
> "datatype"=>"string",
> "position"=>"1"},
> "1"=>
> {"name"=>"kw1",
> "task_id"=>"2",
> "value"=>"Hobo",
> "datatype"=>"string",
> "position"=>"2"},
> "2"=>
> {"name"=>"kw2",
> "task_id"=>"2",
> "value"=>"plug-in",
> "datatype"=>"string",
> "position"=>"3"},
> "3"=>
> {"name"=>"text",
> "task_id"=>"2",
> "authorable"=>"true",
> "value"=>"dummy",
> "datatype"=>"html",
> "position"=>"4"}},
> "author_id"=>"",
> "reviewer_id"=>""},
> "id"=>"2-alpha-1",
> "controller"=>"tasks"}
>
> Any idea?
>
> Regards,
>
> Gert
>
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---