Programming/Comparisons

From etwiki
Jump to navigation Jump to search

Frameworks

Ruby on Rails and Blazor

Ruby on Rails and Blazor
Ruby on Rails Blazor
Language Ruby C#
Models
  • /app/models/*.rb
  • /Models/*.cs
  • Package dependencies
Views
  • /app/views/*.html.erb
  • /Pages/*.razor
  • /Pages/*.cshtml
Controllers
  • /app/controllers/*.rb
  • Part of /Pages/*.razor
  • /Pages/*.cshtml.cs for corresponding /Pages/*.cshtml
Routing
  • /config/routes.rb
  • Defined by `@page "/<path>"` on each /Page/*.razor page
Permissions/Authentication
  • Defined in /app/models/powers/*.rb
  • Used in /app/controllers/*.rb
  • /app/controllers/application_controller.rb to rescue Consul::Powerless
  • Configured in /Startup.cs
  • Used in /Pages/*.razor
  • /App.razor to rescue unauthorized