diff --git a/app/controllers/settings/billing_information_controller.rb b/app/controllers/settings/billing_information_controller.rb new file mode 100644 index 00000000..06a112b9 --- /dev/null +++ b/app/controllers/settings/billing_information_controller.rb @@ -0,0 +1,10 @@ +class Settings::BillingInformationController < ApplicationController + def show + end + + def edit + end + + def update + end +end diff --git a/app/controllers/settings_controller.rb b/app/controllers/settings_controller.rb new file mode 100644 index 00000000..896e2a52 --- /dev/null +++ b/app/controllers/settings_controller.rb @@ -0,0 +1,4 @@ +class SettingsController < ApplicationController + def show + end +end diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index a796967a..84517dbe 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -28,7 +28,7 @@ Projects People <% if current_user.owner? %> - Settings + <%= header_link_to "Settings", settings_path %> <% end %> @@ -100,7 +100,7 @@ Projects People <% if current_user.owner? %> - Settings + <%= mobile_header_link_to "Settings", settings_path %> <% end %>
diff --git a/app/views/settings/billing_information/edit.html.erb b/app/views/settings/billing_information/edit.html.erb new file mode 100644 index 00000000..24b605e0 --- /dev/null +++ b/app/views/settings/billing_information/edit.html.erb @@ -0,0 +1,4 @@ +
+

Settings::BillingInformation#edit

+

Find me in app/views/settings/billing_information/edit.html.erb

+
diff --git a/app/views/settings/billing_information/show.html.erb b/app/views/settings/billing_information/show.html.erb new file mode 100644 index 00000000..01fbd96d --- /dev/null +++ b/app/views/settings/billing_information/show.html.erb @@ -0,0 +1 @@ +<%= render(Settings::TabsComponent.new) %> \ No newline at end of file diff --git a/app/views/settings/show.html.erb b/app/views/settings/show.html.erb new file mode 100644 index 00000000..01fbd96d --- /dev/null +++ b/app/views/settings/show.html.erb @@ -0,0 +1 @@ +<%= render(Settings::TabsComponent.new) %> \ No newline at end of file diff --git a/config/routes.rb b/config/routes.rb index 4e3fd055..36e8c13e 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -1,5 +1,4 @@ Rails.application.routes.draw do - mount GraphiQL::Rails::Engine, at: "/graphiql", graphql_path: "/graphql", constraints: lambda { |request| # only allow authenticated users, otherwise 404 Passwordless::Session.exists?(id: request.session[:"passwordless_session_id--user"]) @@ -24,5 +23,9 @@ resource :dashboard, only: [:show], controller: "dashboard" + resource :settings, only: [:show], controller: "settings" do + resource :billing_information, only: [:show, :edit, :update], controller: "settings/billing_information" + end + root "dashboard#show" end