i want to create database for individual user .
when user login and add sequences in to database .the web page show
list of sequences that user have in database. but when i try show the
list of of sequences
.it’s show all list of sequence in database. such as the total
sequences that user A add are 3 items and the total sequences that
user B add are 5 items.
when user A login and want to see own data .the web page show 8
items.in fact it’s show 3 items. how i fix this the problem.
class ComponentsController < ApplicationController
before_filter :protect, :only => [:show, :edit]
@title = “list of sequences”
@items = Seq.find(:all)
@title = “Database”
if request.post?and params[:seq]
@seq = Seq.new(params[:seq])
flash[:notice] = “sequence submitted !”
redirect_to :action => “show”, :id => @seq.id