Thorsten L wrote:
show some code. be more describing …
i have a controller for the first page which displays the records for 2
tables in my database.
var1 = Table1.find(:all)
var2 = Table2.find(:all)
the view for this displays all of the records, along with checkboxes.
form action = “/another_controler/run”
var1.each do |record|
var2.each do |record2|
the params from view 1 are passed to controller 2
variable1 = params[‘group’]
variable2 = params[‘group2’]
# y is then passed to a new object
newVariable = Class.new(y)
#methods are invoked depending on what x is equal too
if x == 'example'
the view for run displays variable1
i have written my code in short hand just to give you an idea of the
the problem i have is that when the view for run (VIEW2) is invoked,
when i go back to the first page i get the follwing error:
undefined method ‘find’ for Table1:Module