I understand that it is not good practice in rails to store objects in
the session and to instead just store id’s of model objects… could
someone please explain why this is?
If this is true, i was wondering if it was also better practice to pass
id’s between methods as opposed to passing objects?
Is the performance of the application a factor in deciding this?
I also have an issue of whether to have fairly large controller methods
or to split them up and use redirect_to between the methods… basically,
the large method would be reused a lot and so would have to have many
‘if’ statements in to account for all instances of its use… or the
smaller ones would account for the different instances and would use
redirect_to to use common code ??
Any thoughts on these issues would be very much appreciated!