# GET /vmds
# GET /vmds.xml
def index
- @search = Vmd::Search.new(params[:search])
- @vmds = Vmd.where(@search.conditions).includes(:arc).page(params[:page])
+ @search = Record::Vmd::Search.new(params[:search])
+ @vmds = Record::Vmd.where(@search.conditions).includes(:arc).page(params[:page])
respond_to do |format|
format.html # index.html.erb
# GET /vmds/1
# GET /vmds/1.xml
def show
- @vmd = Vmd.find(params[:id])
+ @vmd = Record::Vmd.find(params[:id])
respond_to do |format|
format.html # show.html.erb
# GET /vmds/new
# GET /vmds/new.xml
def new
- @vmd = Vmd.new
+ @vmd = Record::Vmd.new
respond_to do |format|
format.html # new.html.erb
# GET /vmds/1/edit
def edit
- @vmd = Vmd.find(params[:id])
+ @vmd = Record::Vmd.find(params[:id])
end
# POST /vmds
# POST /vmds.xml
def create
- @vmd = Vmd.new(params[:vmd])
+ @vmd = Record::Vmd.new(params[:vmd])
respond_to do |format|
if @vmd.save
- flash[:notice] = 'Vmd was successfully created.'
+ flash[:notice] = 'Record::Vmd was successfully created.'
format.html { redirect_to(@vmd) }
format.xml { render :xml => @vmd, :status => :created, :location => @vmd }
else
# PUT /vmds/1
# PUT /vmds/1.xml
def update
- @vmd = Vmd.find(params[:id])
+ @vmd = Record::Vmd.find(params[:id])
respond_to do |format|
if @vmd.update_attributes(params[:vmd])
- flash[:notice] = 'Vmd was successfully updated.'
+ flash[:notice] = 'Record::Vmd was successfully updated.'
format.html { redirect_to(@vmd) }
format.xml { head :ok }
else
# DELETE /vmds/1
# DELETE /vmds/1.xml
def destroy
- @vmd = Vmd.find(params[:id])
+ @vmd = Record::Vmd.find(params[:id])
@vmd.destroy
respond_to do |format|