Skip to content

Commit

Permalink
Tramway updates
Browse files Browse the repository at this point in the history
  • Loading branch information
kalashnikovisme committed Jul 23, 2023
1 parent 5759807 commit a189678
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 15 deletions.
3 changes: 2 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ gem 'stimulus-rails'
gem 'turbo-rails'
gem 'tzinfo-data', platforms: %i[windows jruby]

gem 'tramway', github: 'purple-magic/tramway', branch: :config
# gem 'tramway', '0.2.1.3'
gem 'tramway', path: 'vendor/tramway'
# gem 'tramway', path: 'vendor/tramway'
gem 'view_component'

group :development do
Expand Down
18 changes: 10 additions & 8 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
GIT
remote: https://github.com/purple-magic/tramway.git
revision: 5c5c7f5e5b0ef7f93cf3891471e723e3fbd18698
branch: config
specs:
tramway (0.2.1.3)
haml-rails
rails (~> 7)
view_component

GIT
remote: https://github.com/rails/rails.git
revision: 732a4748b361bfdadb042fc62b4c608b1a6eef47
Expand Down Expand Up @@ -94,14 +104,6 @@ GIT
thor (~> 1.0)
zeitwerk (~> 2.6)

PATH
remote: vendor/tramway
specs:
tramway (0.2.1.3)
haml-rails
rails (~> 7)
view_component

GEM
remote: https://rubygems.org/
specs:
Expand Down
5 changes: 0 additions & 5 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,6 @@ module ApplicationHelper

def navbar
tramway_navbar title: 'RED MAGIC', background: { color: :red, intensity: 500 } do |nav|
nav.left do
nav.item 'Users', '/users'
nav.item 'Podcasts', '/podcasts'
end

nav.right do
if current_user.present?
nav.item 'Sign out', destroy_user_session_path, method: :delete, confirm: 'Wanna quit?'
Expand Down
4 changes: 3 additions & 1 deletion config/initializers/tramway.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

Tramway.configure do |config|
config.entities = [:podcast, :episode]
config.entities = %i[user podcast episode]
end
2 changes: 2 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@

devise_for :users

resources :users
resources :podcasts
resources :episodes

root 'podcasts#index'
end

0 comments on commit a189678

Please sign in to comment.