removed extra migrate file and made user show profile correctly
This commit is contained in:
parent
112708eb52
commit
402786a7c6
2 changed files with 1 additions and 9 deletions
|
@ -21,7 +21,7 @@ class UsersController < ApplicationController
|
|||
|
||||
# GET /user
|
||||
def show
|
||||
@user = User.find(params[:user_id])
|
||||
@user = User.find(params[:id])
|
||||
|
||||
respond_with(@user)
|
||||
end
|
||||
|
|
|
@ -1,8 +0,0 @@
|
|||
class AddAllToMap < ActiveRecord::Migration
|
||||
def self.up
|
||||
add_column :maps, :name, :text
|
||||
add_column :maps, :desc, :text
|
||||
add_column :maps, :permission, :text
|
||||
add_column :maps, :user_id, :integer
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue