Ruby on Rails Tuesday, September 12, 2017

here's the output of my routes... (sorry about the formatting)

                Prefix Verb   URI Pattern                     Controller#Action
                 androids GET    /androids(.:format)             androids#index
                          POST   /androids(.:format)             androids#create
              new_android GET    /androids/new(.:format)         androids#new
             edit_android GET    /androids/:id/edit(.:format)    androids#edit
                  android GET    /androids/:id(.:format)         androids#show
                          PATCH  /androids/:id(.:format)         androids#update
                          PUT    /androids/:id(.:format)         androids#update
                          DELETE /androids/:id(.:format)         androids#destroy
        new_admin_session GET    /admins/sign_in(.:format)       devise/sessions#new
            admin_session POST   /admins/sign_in(.:format)       devise/sessions#create
    destroy_admin_session DELETE /admins/sign_out(.:format)      devise/sessions#destroy
       new_admin_password GET    /admins/password/new(.:format)  devise/passwords#new
      edit_admin_password GET    /admins/password/edit(.:format) devise/passwords#edit
           admin_password PATCH  /admins/password(.:format)      devise/passwords#update
                          PUT    /admins/password(.:format)      devise/passwords#update
                          POST   /admins/password(.:format)      devise/passwords#create
cancel_admin_registration GET    /admins/cancel(.:format)        devise/registrations#cancel
   new_admin_registration GET    /admins/sign_up(.:format)       devise/registrations#new
  edit_admin_registration GET    /admins/edit(.:format)          devise/registrations#edit
       admin_registration PATCH  /admins(.:format)               devise/registrations#update
                          PUT    /admins(.:format)               devise/registrations#update
                          DELETE /admins(.:format)               devise/registrations#destroy
                          POST   /admins(.:format)               devise/registrations#create
                 ckeditor        /ckeditor                       Ckeditor::Engine
                     root GET    /                               posts#index
                    posts GET    /posts(.:format)                posts#index
                          POST   /posts(.:format)                posts#create
                 new_post GET    /posts/new(.:format)            posts#new
                edit_post GET    /posts/:id/edit(.:format)       posts#edit
                     post GET    /posts/:id(.:format)            posts#show
                          PATCH  /posts/:id(.:format)            posts#update
                          PUT    /posts/:id(.:format)            posts#update
                          DELETE /posts/:id(.:format)            posts#destroy
            gallery_index GET    /gallery(.:format)              gallery#index
                          POST   /gallery(.:format)              gallery#create
              new_gallery GET    /gallery/new(.:format)          gallery#new
             edit_gallery GET    /gallery/:id/edit(.:format)     gallery#edit
                  gallery GET    /gallery/:id(.:format)          gallery#show
                          PATCH  /gallery/:id(.:format)          gallery#update
                          PUT    /gallery/:id(.:format)          gallery#update
                          DELETE /gallery/:id(.:format)          gallery#destroy
            android_index GET    /android(.:format)              android#index
                          POST   /android(.:format)              android#create
                          GET    /android/new(.:format)          android#new
                          GET    /android/:id/edit(.:format)     android#edit
                          GET    /android/:id(.:format)          android#show
                          PATCH  /android/:id(.:format)          android#update
                          PUT    /android/:id(.:format)          android#update
                          DELETE /android/:id(.:format)          android#destroy

Routes for Ckeditor::Engine:
        pictures GET    /pictures(.:format)             ckeditor/pictures#index
                 POST   /pictures(.:format)             ckeditor/pictures#create
         picture DELETE /pictures/:id(.:format)         ckeditor/pictures#destroy
attachment_files GET    /attachment_files(.:format)     ckeditor/attachment_files#index
                 POST   /attachment_files(.:format)     ckeditor/attachment_files#create
 attachment_file DELETE /attachment_files/:id(.:format) ckeditor/attachment_files#destroy





On Tuesday, September 12, 2017 at 5:03:56 PM UTC-4, Colin Law wrote:
On 12 September 2017 at 02:15, Joe Guerra <JGu...@jginfosys.com> wrote:
> ...
> I'm using... in my routes file.
>
> get resources :gallery

Why is the 'get' there?

Colin

--
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/af2a8305-0b83-4075-8b51-f0b610ac31a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment