일반적으로 rails의 plugin을 처음 설치하려고 시도하면 다음과 같은 메세지를 보게 된다.
다음과 같은 메세지가 나오는 이유는 설치하고자 하는 plugin이 우리가 플러그인을 설치할 때 확인하는 리스트에 설치하려는 plugin이 존재하지 않기 때문이다.
기본적인 rails의 plugin 리스트는 다음 명령어로 확인 할 수 있다.
rails의 check repository를 추가하려면 다음의 명령어를 사용하면 된다.
원하는 repository가 나오면 y를 눌러서 추가해주면 된다.
acts_as_taggable plugin을 설치해보자
migration을 만들어 준다.
0xx_add_tag_support.rb를 다음과 같이 만들어주고
rake db:migrate를 수행한다.
정상적으로 테이블이 생성되는 것을 볼 수 있다.
Plugin not found: "설치하려는 plugin 이름"
다음과 같은 메세지가 나오는 이유는 설치하고자 하는 plugin이 우리가 플러그인을 설치할 때 확인하는 리스트에 설치하려는 plugin이 존재하지 않기 때문이다.
기본적인 rails의 plugin 리스트는 다음 명령어로 확인 할 수 있다.
$ruby script/plugin list
rails의 check repository를 추가하려면 다음의 명령어를 사용하면 된다.
$ruby script/plugin discover
원하는 repository가 나오면 y를 눌러서 추가해주면 된다.
acts_as_taggable plugin을 설치해보자
$ruby script/plugin install acts_as_taggable
migration을 만들어 준다.
$ruby script/generate migration add_tag_support
0xx_add_tag_support.rb를 다음과 같이 만들어주고
class AddTagSuppport < ActiveRecord::Migration
def self.up
create_table :taggings do |t|
t.column :taggable_id, :integer
t.column :tag_id, :integer
t.column :taggable_type, :string
end
create_table :tags do |t|
t.column :name, :string
end
end
def self.down
drop_table :taggings
drop_table :tags
end
end
def self.up
create_table :taggings do |t|
t.column :taggable_id, :integer
t.column :tag_id, :integer
t.column :taggable_type, :string
end
create_table :tags do |t|
t.column :name, :string
end
end
def self.down
drop_table :taggings
drop_table :tags
end
end
rake db:migrate를 수행한다.
$rake db:migrate
정상적으로 테이블이 생성되는 것을 볼 수 있다.


댓글을 달아 주세요
http://eprints.ecs.soton.ac.uk/12614/01/Semantic_Web_Revisted.pdf
이논문 번역본은 존재하지 안한요 전공중인데,,, 도저히 해석하기가 너무 힘이들어서요,,
발표해야하는데,, 부탁드립니다.
음... 글쎄요. 저도 원문을 봤던거 같은데요. 한번 천천히 보시는게 어떨까요? 도움이 되어드리지 못해서 아쉽군요. 근데 어디 연구실에 계시는지 전공하시는 분야가 상당히 많은 관심을 가지고 있어서요??
그럼 즐겁게 공부하시길...