d8698ef6f2
* Update restful_controller.rb * Update tokens_controller.rb * /tokens/new form * thats all
9 lines
216 B
Ruby
9 lines
216 B
Ruby
# frozen_string_literal: true
|
|
class TokensController < ApplicationController
|
|
before_action :require_user, only: [:new]
|
|
|
|
def new
|
|
@token = Token.new(user: current_user)
|
|
render :new, layout: false
|
|
end
|
|
end
|