On Sat, Feb 1, 2014 at 6:30 PM, Bizt <martyn.biz@gmail.com> wrote:
> In the documentation it seems I can specify which methods I want to allow:
>
> resources :accounts, only: [:index, :new, :create, :edit, :update, :destroy]
> # no show
>
> is this the correct/ best way to restrict access?
You can also use
resources :accounts, except: [ :show ]
> Then I can delete my controller method ad view(?)
Sure. Or maybe. Do frequent git saves, try it, change your mind,
it's all good :-)
--
Hassan Schroeder ------------------------ hassan.schroeder@gmail.com
http://about.me/hassanschroeder
twitter: @hassan
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/CACmC4yDeEMfFfCLGZetStQQAvTebSQ6djCPPX-SBA_h9DaVg0g%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment