On Sat, Feb 1, 2014 at 6:30 PM, Bizt <[email protected]> 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 ------------------------ [email protected]
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 [email protected].
To post to this group, send email to [email protected].
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.

Reply via email to