Displaying 4 results from an estimated 4 matches for "reinstanti".
Did you mean:
reinstalt
2009 Oct 14
6
Reinstantiate controller during functional testing
...(:part_two).to_param
assert_response :success
end
The problem is, there is an instance variable in my controller that is
set during the handling of the first #add_lot_to_assembly action. It
remains set for the second invocation of #xhr. This makes me think
that the controller instance is not reinstantiated between calls to
#xhr.
Am I misunderstanding this?
Is there some way to reinstantiate the controller prior to the 2nd xhr call?
Is there a better way to have structured my functional test?
Should I be using something other than a functional test to test this
sort of behavior?
--wpd
2010 May 19
1
export dataframe's column classes to a list
Hi Folks,
I want to export a dataframe's column classes to a list so that I can
reinstantiate the dataframe from a CSV file in the future. (I know
about save(), which I'm using in addition to this).
what I want to do is the following:
write.csv(myframe);
col_classes = get_col_classes(myframe);
write.csv(col_classes, "column_classes")
... time passes, R ge...
2006 Jun 24
4
session alternatives
I have a web application that is getting larger all the time. There are
now 3 separate models where I am storing the current find parameters in
session hash and it''s beginning to seem to me that this might not be a
good idea.
Before I add another model to the mess - is there a better way? Do I
have to create some table to store the current ''find'' criteria? It seems
as
2006 Mar 13
6
lame newbie question: how to pass instance variables
This should be obvious - but I''m a long-time non-web app programmer and
new to rails.
I simply want to put something in a variable in one action and access it
in another.
It''s like this, I''m doing a simple photo gallery/managment app, and I
have two actions in my picture_controller:
The first one scans the picture directory and creates a new object in
the pictures