Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% if @news.last.created_at > preview.updated_at && preview.user_id == current_user.id %>
- <p><%= link_to "edit", edit_game_preview_path(@game.id, preview.id) %></p>
- <% end %>
- Rails.application.routes.draw do
- devise_for :users
- root "games#index"
- resources :games do
- resources :news
- resources :reviews, except: [:show, :index]
- resources :previews, except: [:show, :index]
- end
- resources :platforms
- resources :genres
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement