خرید بک لینک

Vote count: 0

I'm working on a learning platform that at this stage has users, an admin, and 'feeds' (pages with learning content). I would like to create a link that would take users to the newest feed created by the admin. In the console, I could locate this record with 'feed.last'.

Here are the routes in my application:

                   feeds GET    /feeds(.:format)               feeds#index
                     POST   /feeds(.:format)               feeds#create
            new_feed GET    /feeds/new(.:format)           feeds#new
           edit_feed GET    /feeds/:id/edit(.:format)      feeds#edit
                feed GET    /feeds/:id(.:format)           feeds#show
                     PATCH  /feeds/:id(.:format)           feeds#update
                     PUT    /feeds/:id(.:format)           feeds#update
                     DELETE /feeds/:id(.:format)           feeds#destroy
    new_user_session GET    /users/sign_in(.:format)       devise/sessions#new
        user_session POST   /users/sign_in(.:format)       devise/sessions#create
destroy_user_session DELETE /users/sign_out(.:format)      devise/sessions#destroy
       user_password POST   /users/password(.:format)      devise/passwords#create
   new_user_password GET    /users/password/new(.:format)  devise/passwords#new
  edit_user_password GET    /users/password/edit(.:format) devise/passwords#edit
                     PATCH  /users/password(.:format)      devise/passwords#update
                     PUT    /users/password(.:format)      devise/passwords#update

cancel_user_registration GET /users/cancel(.:format) devise/registrations#cancel user_registration POST /users(.:format) devise/registrations#create new_user_registration GET /users/sign_up(.:format) devise/registrations#new edit_user_registration GET /users/edit(.:format) devise/registrations#edit PATCH /users(.:format) devise/registrations#update PUT /users(.:format) devise/registrations#update DELETE /users(.:format) devise/registrations#destroy root GET / pages#home

Routes for Bootsy::Engine: image_gallery_images GET /image_galleries/:image_gallery_id/images(.:format) bootsy/images#index POST /image_galleries/:image_gallery_id/images(.:format) bootsy/images#create image_gallery_image DELETE /image_galleries/:image_gallery_id/images/:id(.:format) bootsy/images#destroy images GET /images(.:format) bootsy/images#index POST /images(.:format) bootsy/images#create image DELETE /images/:id(.:format) bootsy/images#destroy

Is there a way I could format a link (ex: <%= link_to "Latest Feed", __________ %>) to allow for this?

asked 37 secs ago

برچسب: rails link to last page, نویسنده: استخدام کار تاريخ: چهارشنبه 10 شهريور 1395 ساعت: 23:53

صفحه بندی