Hey guys, I just read why this is happening at The Rails 4 Way book: "The goal of the typical controller action is to render a view template—that is, to fill out the template and hand the results, usually an HTML document, back to the server for delivery to the client. Oddly—at least it might strike you as a bit odd, though not illogical—you don’t actually need to define a controller action, as long as you’ve got a template that matches the action name."
So, try to delete the 'show' template for this controller and try again. :) On Sunday, February 2, 2014 1:30:56 AM UTC-2, Hassan Schroeder wrote: > > On Sat, Feb 1, 2014 at 6:30 PM, Bizt <[email protected] <javascript:>> > 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]<javascript:> > 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/3eaecd58-4323-4bac-a808-71363f7e1511%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.

