auto_actions :read_only, :write_only lacks update action

20 views
Skip to first unread message

Ramiro Esteban Ordóñez Baca

unread,
Oct 26, 2011, 1:16:57 AM10/26/11
to hobo...@googlegroups.com
When I specify:
auto_actions :read_only, :write_only
I should have the show page with a link to edit each record because I
don't have an edit action but I have an update action. But I don't have
any way to change the values.

kevinpfromnm

unread,
Oct 26, 2011, 4:10:42 PM10/26/11
to hobo...@googlegroups.com
:read_only and :write_only work when they're the first entry.  try:

auto_actions :write_only, :show, :index

Ramiro Esteban Ordóñez Baca

unread,
Oct 27, 2011, 11:04:07 PM10/27/11
to hobo...@googlegroups.com
On 26/10/11 15:10, kevinpfromnm wrote:
> :read_only and :write_only work when they're the first entry. try:
>
> auto_actions :write_only, :show, :index
> --
> You received this message because you are subscribed to the Google
> Groups "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/tjgqhawqMjMJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

auto_actions :write_only, :read_only
is just like
auto_actions :create, :update, :destroy :show, :index

There should be no edit page. My mistake. It is doing what it should.

update without edit is a problem.
edit without show is no problem unless there is no index page.
create without new is no problem unless we don't have an index page.

kevinpfromnm

unread,
Oct 28, 2011, 3:52:51 PM10/28/11
to hobo...@googlegroups.com
:write_only basically provides support for ajax style updates and inline forms.  It doesn't even have to be handled on the same model, and often isn't.  When I use :write_only, it's mostly on a join model that needs some custom creation/update code but never should be shown outside the context of an owning model.  It also goes hand in hand with owned actions (i.e. auto_actions_for)
Reply all
Reply to author
Forward
0 new messages