diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/remote_usernames.js.coffee | 3 | ||||
-rw-r--r-- | app/assets/stylesheets/remote_usernames.css.scss | 3 | ||||
-rw-r--r-- | app/controllers/remote_usernames_controller.rb | 74 | ||||
-rw-r--r-- | app/helpers/remote_usernames_helper.rb | 2 | ||||
-rw-r--r-- | app/views/remote_usernames/_form.html.erb | 29 | ||||
-rw-r--r-- | app/views/remote_usernames/edit.html.erb | 6 | ||||
-rw-r--r-- | app/views/remote_usernames/index.html.erb | 31 | ||||
-rw-r--r-- | app/views/remote_usernames/index.json.jbuilder | 4 | ||||
-rw-r--r-- | app/views/remote_usernames/new.html.erb | 5 | ||||
-rw-r--r-- | app/views/remote_usernames/show.html.erb | 19 | ||||
-rw-r--r-- | app/views/remote_usernames/show.json.jbuilder | 1 |
11 files changed, 0 insertions, 177 deletions
diff --git a/app/assets/javascripts/remote_usernames.js.coffee b/app/assets/javascripts/remote_usernames.js.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/remote_usernames.js.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/remote_usernames.css.scss b/app/assets/stylesheets/remote_usernames.css.scss deleted file mode 100644 index b9e841e..0000000 --- a/app/assets/stylesheets/remote_usernames.css.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the remote_usernames controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/remote_usernames_controller.rb b/app/controllers/remote_usernames_controller.rb deleted file mode 100644 index 8676c00..0000000 --- a/app/controllers/remote_usernames_controller.rb +++ /dev/null @@ -1,74 +0,0 @@ -class RemoteUsernamesController < ApplicationController - before_action :set_remote_username, only: [:show, :edit, :update, :destroy] - - # GET /remote_usernames - # GET /remote_usernames.json - def index - @remote_usernames = RemoteUsername.all - end - - # GET /remote_usernames/1 - # GET /remote_usernames/1.json - def show - end - - # GET /remote_usernames/new - def new - @remote_username = RemoteUsername.new - end - - # GET /remote_usernames/1/edit - def edit - end - - # POST /remote_usernames - # POST /remote_usernames.json - def create - @remote_username = RemoteUsername.new(remote_username_params) - - respond_to do |format| - if @remote_username.save - format.html { redirect_to @remote_username, notice: 'Remote username was successfully created.' } - format.json { render action: 'show', status: :created, location: @remote_username } - else - format.html { render action: 'new' } - format.json { render json: @remote_username.errors, status: :unprocessable_entity } - end - end - end - - # PATCH/PUT /remote_usernames/1 - # PATCH/PUT /remote_usernames/1.json - def update - respond_to do |format| - if @remote_username.update(remote_username_params) - format.html { redirect_to @remote_username, notice: 'Remote username was successfully updated.' } - format.json { head :no_content } - else - format.html { render action: 'edit' } - format.json { render json: @remote_username.errors, status: :unprocessable_entity } - end - end - end - - # DELETE /remote_usernames/1 - # DELETE /remote_usernames/1.json - def destroy - @remote_username.destroy - respond_to do |format| - format.html { redirect_to remote_usernames_url } - format.json { head :no_content } - end - end - - private - # Use callbacks to share common setup or constraints between actions. - def set_remote_username - @remote_username = RemoteUsername.find(params[:id]) - end - - # Never trust parameters from the scary internet, only allow the white list through. - def remote_username_params - params.require(:remote_username).permit(:game_id, :user_id, :user_name) - end -end diff --git a/app/helpers/remote_usernames_helper.rb b/app/helpers/remote_usernames_helper.rb deleted file mode 100644 index 3240c4f..0000000 --- a/app/helpers/remote_usernames_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module RemoteUsernamesHelper -end diff --git a/app/views/remote_usernames/_form.html.erb b/app/views/remote_usernames/_form.html.erb deleted file mode 100644 index 5da1f8f..0000000 --- a/app/views/remote_usernames/_form.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -<%= form_for(@remote_username) do |f| %> - <% if @remote_username.errors.any? %> - <div id="error_explanation"> - <h2><%= pluralize(@remote_username.errors.count, "error") %> prohibited this remote_username from being saved:</h2> - - <ul> - <% @remote_username.errors.full_messages.each do |msg| %> - <li><%= msg %></li> - <% end %> - </ul> - </div> - <% end %> - - <div class="field"> - <%= f.label :game_id %><br> - <%= f.text_field :game_id %> - </div> - <div class="field"> - <%= f.label :user_id %><br> - <%= f.text_field :user_id %> - </div> - <div class="field"> - <%= f.label :user_name %><br> - <%= f.text_field :user_name %> - </div> - <div class="actions"> - <%= f.submit %> - </div> -<% end %> diff --git a/app/views/remote_usernames/edit.html.erb b/app/views/remote_usernames/edit.html.erb deleted file mode 100644 index 52d4b37..0000000 --- a/app/views/remote_usernames/edit.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -<h1>Editing remote_username</h1> - -<%= render 'form' %> - -<%= link_to 'Show', @remote_username %> | -<%= link_to 'Back', remote_usernames_path %> diff --git a/app/views/remote_usernames/index.html.erb b/app/views/remote_usernames/index.html.erb deleted file mode 100644 index 14f5876..0000000 --- a/app/views/remote_usernames/index.html.erb +++ /dev/null @@ -1,31 +0,0 @@ -<h1>Listing remote_usernames</h1> - -<table> - <thead> - <tr> - <th>Game</th> - <th>User</th> - <th>User name</th> - <th></th> - <th></th> - <th></th> - </tr> - </thead> - - <tbody> - <% @remote_usernames.each do |remote_username| %> - <tr> - <td><%= remote_username.game %></td> - <td><%= remote_username.user %></td> - <td><%= remote_username.user_name %></td> - <td><%= link_to 'Show', remote_username %></td> - <td><%= link_to 'Edit', edit_remote_username_path(remote_username) %></td> - <td><%= link_to 'Destroy', remote_username, method: :delete, data: { confirm: 'Are you sure?' } %></td> - </tr> - <% end %> - </tbody> -</table> - -<br> - -<%= link_to 'New Remote username', new_remote_username_path %> diff --git a/app/views/remote_usernames/index.json.jbuilder b/app/views/remote_usernames/index.json.jbuilder deleted file mode 100644 index c9fbc0f..0000000 --- a/app/views/remote_usernames/index.json.jbuilder +++ /dev/null @@ -1,4 +0,0 @@ -json.array!(@remote_usernames) do |remote_username| - json.extract! remote_username, :id, :game_id, :user_id, :user_name - json.url remote_username_url(remote_username, format: :json) -end diff --git a/app/views/remote_usernames/new.html.erb b/app/views/remote_usernames/new.html.erb deleted file mode 100644 index b9cfcf4..0000000 --- a/app/views/remote_usernames/new.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<h1>New remote_username</h1> - -<%= render 'form' %> - -<%= link_to 'Back', remote_usernames_path %> diff --git a/app/views/remote_usernames/show.html.erb b/app/views/remote_usernames/show.html.erb deleted file mode 100644 index 416ca9d..0000000 --- a/app/views/remote_usernames/show.html.erb +++ /dev/null @@ -1,19 +0,0 @@ -<p id="notice"><%= notice %></p> - -<p> - <strong>Game:</strong> - <%= @remote_username.game %> -</p> - -<p> - <strong>User:</strong> - <%= @remote_username.user %> -</p> - -<p> - <strong>User name:</strong> - <%= @remote_username.user_name %> -</p> - -<%= link_to 'Edit', edit_remote_username_path(@remote_username) %> | -<%= link_to 'Back', remote_usernames_path %> diff --git a/app/views/remote_usernames/show.json.jbuilder b/app/views/remote_usernames/show.json.jbuilder deleted file mode 100644 index 1a0f6f9..0000000 --- a/app/views/remote_usernames/show.json.jbuilder +++ /dev/null @@ -1 +0,0 @@ -json.extract! @remote_username, :id, :game_id, :user_id, :user_name, :created_at, :updated_at |