This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Ember from 'ember'; | |
| import MixinOne from '../mixins/one'; | |
| import MixinTwo from '../mixins/two'; | |
| const { | |
| on, | |
| RSVP | |
| } = Ember; | |
| export default Ember.Controller.extend(MixinOne, MixinTwo, { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| rails generate model Announcement account:references title body:text show_site_wide announcement_type target published_at:datetime | |
| /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/route_set.rb:581:in `add_route': Invalid route name, already in use: 'root' | |
| You may have defined two routes with the same name using the `:as` option, or you may be overriding a route already defined by a resource with the same naming. For the latter, you can restrict the routes created with `resources` as explai | |
| ned here: | |
| https://guides.rubyonrails.org/routing.html#restricting-the-routes-created (ArgumentError) | |
| from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1957:in `add_route' | |
| from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/actionpack-6.0.0/lib/action_dispatch/routing/mapper.rb:1928:in `decomposed_match' | |
| from /Users/dan/.rbenv/versions/2.6.4/lib/ruby/gems/2.6.0/gems/act |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Rails.application.routes.draw do | |
| resource :billing, controller: 'sjabloon/billing', only: [:create, :update, :destroy] do | |
| member do | |
| get 'setup', to: 'sjabloon/billing#new', as: 'new' | |
| get '/', to: 'sjabloon/billing#show' | |
| end | |
| resources :plans, controller: 'sjabloon/plans', only: [:index, :update] | |
| end | |
| resource :card, controller: 'sjabloon/card', only: [:update] |
OlderNewer