pass variables from a controller to another one rails code example
Example: rails pass variable between controller methods
@pages = Post.find.all
@@my_value = @pages.(any manipulations)
# now @@my_vales can be used in any actions of that controller..
# Be carefull, it is not thread-safe...